]> Cypherpunks repositories - gostls13.git/commit
html: handle end tags in foreign objects.
authorNigel Tao <nigeltao@golang.org>
Thu, 15 Dec 2011 22:36:50 +0000 (09:36 +1100)
committerNigel Tao <nigeltao@golang.org>
Thu, 15 Dec 2011 22:36:50 +0000 (09:36 +1100)
commita369004e2318ad0f139f967c764918bd939980ce
tree2b8f6cd3b667b54f603a66852f073204d218dfd1
parent9f65e99ad4bdc85e979f12fb5e4d7f4e4b8a7693
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
src/pkg/html/const.go
src/pkg/html/parse.go
src/pkg/html/parse_test.go