Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(730)

Issue 5311066: code review 5311066: html: allow whitespace text nodes in <head> (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by andybalholm
Modified:
13 years, 5 months ago
Reviewers:
nigeltao
CC:
golang-dev
Visibility:
Public.

Description

html: allow whitespace text nodes in <head> Pass tests1.dat, test 50: <!DOCTYPE html><script> <!-- </script> --> </script> EOF | <!DOCTYPE html> | <html> | <head> | <script> | " <!-- " | " " | <body> | "--> EOF" Also pass tests through test 54: <!DOCTYPE html><title>U-test</title><body><div><p>Test<u></p></div></body>

Patch Set 1 #

Patch Set 2 : diff -r 69423942510b https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 69423942510b https://go.googlecode.com/hg/ #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -3 lines) Patch
M src/pkg/html/parse.go View 1 4 chunks +16 lines, -2 lines 1 comment Download
M src/pkg/html/parse_test.go View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4
andybalholm
Hello nigeltao@golang.org (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2011-10-27 15:51:11 UTC) #1
nigeltao
LGTM.
13 years, 5 months ago (2011-10-27 22:03:14 UTC) #2
nigeltao
*** Submitted as http://code.google.com/p/go/source/detail?r=eb6fbf796acc *** html: allow whitespace text nodes in <head> Pass tests1.dat, test ...
13 years, 5 months ago (2011-10-27 22:06:34 UTC) #3
nigeltao
13 years, 5 months ago (2011-10-27 22:18:18 UTC) #4
LGTM.

http://codereview.appspot.com/5311066/diff/5001/src/pkg/html/parse.go
File src/pkg/html/parse.go (right):

http://codereview.appspot.com/5311066/diff/5001/src/pkg/html/parse.go#newcode443
src/pkg/html/parse.go:443: case TextToken:
I moved this to be below the ErrorToken case, and submitted.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b