]> Cypherpunks repositories - gostls13.git/commit
html: allow whitespace text nodes in <head>
authorAndrew Balholm <andybalholm@gmail.com>
Thu, 27 Oct 2011 22:06:30 +0000 (09:06 +1100)
committerNigel Tao <nigeltao@golang.org>
Thu, 27 Oct 2011 22:06:30 +0000 (09:06 +1100)
commit053549ca1bd77aeaff45ddb574a9f5593962e0d5
tree8d7eea5300743f762915e3c6d43a0b0e54fc2bb9
parentc92a499bc3b0be67f91a1be47f5359e1289ca732
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>

R=nigeltao
CC=golang-dev
https://golang.org/cl/5311066
src/pkg/html/parse.go
src/pkg/html/parse_test.go