aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/html/parse_test.go
diff options
context:
space:
mode:
authorNigel Tao <nigeltao@golang.org>2011-12-19 12:20:00 +1100
committerNigel Tao <nigeltao@golang.org>2011-12-19 12:20:00 +1100
commit18e844147693b0346dc813fbc05a8beb7a210f2f (patch)
tree417a947f9b72e8d4e29543a57c115d44fb0f3c18 /src/pkg/html/parse_test.go
parent5ede9df5a0905e79a1ed8d2be75d6c4f2e7a1787 (diff)
downloadgo-18e844147693b0346dc813fbc05a8beb7a210f2f.tar.xz
html: handle text nodes in foreign content.
Passes tests10.dat, test 6: <!DOCTYPE html><body><table><svg><g>foo</g></svg></table> | <!DOCTYPE html> | <html> | <head> | <body> | <svg svg> | <svg g> | "foo" | <table> Also pass tests through test 12: <!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g></svg><p>baz</caption></table> R=andybalholm CC=golang-dev https://golang.org/cl/5495061
Diffstat (limited to 'src/pkg/html/parse_test.go')
-rw-r--r--src/pkg/html/parse_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/html/parse_test.go b/src/pkg/html/parse_test.go
index f501915759..b938ca7185 100644
--- a/src/pkg/html/parse_test.go
+++ b/src/pkg/html/parse_test.go
@@ -173,7 +173,7 @@ func TestParser(t *testing.T) {
{"tests4.dat", -1},
{"tests5.dat", -1},
{"tests6.dat", 36},
- {"tests10.dat", 6},
+ {"tests10.dat", 13},
}
for _, tf := range testFiles {
f, err := os.Open("testdata/webkit/" + tf.filename)