]> Cypherpunks repositories - gostls13.git/commit
html: handle text nodes in foreign content.
authorNigel Tao <nigeltao@golang.org>
Mon, 19 Dec 2011 01:20:00 +0000 (12:20 +1100)
committerNigel Tao <nigeltao@golang.org>
Mon, 19 Dec 2011 01:20:00 +0000 (12:20 +1100)
commit18e844147693b0346dc813fbc05a8beb7a210f2f
tree417a947f9b72e8d4e29543a57c115d44fb0f3c18
parent5ede9df5a0905e79a1ed8d2be75d6c4f2e7a1787
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
src/pkg/html/parse.go
src/pkg/html/parse_test.go