diff options
| author | Andrew Balholm <andybalholm@gmail.com> | 2011-11-27 14:41:08 +1100 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2011-11-27 14:41:08 +1100 |
| commit | 557ba72e69863ba7d839d86b78edace0c6e20886 (patch) | |
| tree | 4e640899fe81d2339b33478c4f8be149559cad47 /src/pkg/html/parse_test.go | |
| parent | e9025df7ad41d93c1c8943323db06bb49c8a16fe (diff) | |
| download | go-557ba72e69863ba7d839d86b78edace0c6e20886.tar.xz | |
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
Diffstat (limited to 'src/pkg/html/parse_test.go')
| -rw-r--r-- | src/pkg/html/parse_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/html/parse_test.go b/src/pkg/html/parse_test.go index cb1559169e..4a088c74b1 100644 --- a/src/pkg/html/parse_test.go +++ b/src/pkg/html/parse_test.go @@ -152,7 +152,7 @@ func TestParser(t *testing.T) { {"doctype01.dat", -1}, {"tests1.dat", -1}, {"tests2.dat", -1}, - {"tests3.dat", 12}, + {"tests3.dat", 20}, } for _, tf := range testFiles { f, err := os.Open("testdata/webkit/" + tf.filename) |
