]> Cypherpunks repositories - gostls13.git/commit
html: ignore whitespace before <head> element
authorAndrew Balholm <andybalholm@gmail.com>
Mon, 21 Nov 2011 22:27:27 +0000 (09:27 +1100)
committerNigel Tao <nigeltao@golang.org>
Mon, 21 Nov 2011 22:27:27 +0000 (09:27 +1100)
commit750de28d6ceb5c42637b08fb87f2de2f826ed0eb
tree1ef8d7aad26e9f4f5a284914f3c7221fb03d29ae
parent86c08e961136f01d34db7759166433d55e8914b2
html: ignore whitespace before <head> element

Pass tests2.dat, test 47:
" \n "
(That is, two spaces separated by a newline)

| <html>
|   <head>
|   <body>

Also pass tests through test 49:
<!DOCTYPE html><script>
</script>  <title>x</title>  </head>

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