]> Cypherpunks repositories - gostls13.git/commit
html: ignore <head> tags in <head> element
authorAndrew Balholm <andybalholm@gmail.com>
Sun, 27 Nov 2011 03:41:08 +0000 (14:41 +1100)
committerNigel Tao <nigeltao@golang.org>
Sun, 27 Nov 2011 03:41:08 +0000 (14:41 +1100)
commit557ba72e69863ba7d839d86b78edace0c6e20886
tree4e640899fe81d2339b33478c4f8be149559cad47
parente9025df7ad41d93c1c8943323db06bb49c8a16fe
html: ignore <head> tags in <head> element

Pass tests3.dat, test 12:
<!DOCTYPE html><HTML><META><HEAD></HEAD></HTML>

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

Also pass tests through test 19:
<!DOCTYPE html><html><head></head><body><ul><li><div><p><li></ul></body></html>

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