]> Cypherpunks repositories - gostls13.git/commit
html: allow whitespace between head and body
authorAndrew Balholm <andybalholm@gmail.com>
Fri, 2 Dec 2011 00:46:24 +0000 (11:46 +1100)
committerNigel Tao <nigeltao@golang.org>
Fri, 2 Dec 2011 00:46:24 +0000 (11:46 +1100)
commita5d300862b683e6a6d0e503c213d191155d1f63b
tree880b9eb3a4067a373193edf7a73c6eb604bb8841
parent6ea3a268b6263db0c98dbeb8076b1aa710d8f498
html: allow whitespace between head and body

Also ignore <head> tag after </head>.

Pass tests6.dat, test 0:
<!doctype html></head> <head>

| <!DOCTYPE html>
| <html>
|   <head>
|   " "
|   <body>

Also pass tests through test 6:
<body>
<div>

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