diff options
| author | Nigel Tao <nigeltao@golang.org> | 2011-12-16 09:36:50 +1100 |
|---|---|---|
| committer | Nigel Tao <nigeltao@golang.org> | 2011-12-16 09:36:50 +1100 |
| commit | a369004e2318ad0f139f967c764918bd939980ce (patch) | |
| tree | 2b8f6cd3b667b54f603a66852f073204d218dfd1 /src/pkg/html/parse_test.go | |
| parent | 9f65e99ad4bdc85e979f12fb5e4d7f4e4b8a7693 (diff) | |
| download | go-a369004e2318ad0f139f967c764918bd939980ce.tar.xz | |
html: handle end tags in foreign objects.
I'm not 100% sure I get all the corner cases right, for end tags, but
I'll let the test suite smoke it out.
Pass tests10.dat, test 1:
<!DOCTYPE html><svg></svg><![CDATA[a]]>
| <!DOCTYPE html>
| <html>
| <head>
| <body>
| <svg svg>
| <!-- [CDATA[a]] -->
Also pass tests through test 5:
<!DOCTYPE html><body><table><svg></svg></table>
R=andybalholm
CC=golang-dev
https://golang.org/cl/5495044
Diffstat (limited to 'src/pkg/html/parse_test.go')
| -rw-r--r-- | src/pkg/html/parse_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/html/parse_test.go b/src/pkg/html/parse_test.go index e887631c63..f501915759 100644 --- a/src/pkg/html/parse_test.go +++ b/src/pkg/html/parse_test.go @@ -173,6 +173,7 @@ func TestParser(t *testing.T) { {"tests4.dat", -1}, {"tests5.dat", -1}, {"tests6.dat", 36}, + {"tests10.dat", 6}, } for _, tf := range testFiles { f, err := os.Open("testdata/webkit/" + tf.filename) |
