]> Cypherpunks repositories - gostls13.git/commit
html: handle breakout tags in foreign content.
authorNigel Tao <nigeltao@golang.org>
Tue, 20 Dec 2011 23:00:41 +0000 (10:00 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 20 Dec 2011 23:00:41 +0000 (10:00 +1100)
commitfe28d1aacf108cb7b7a4ec573a019e193d07c696
treed51014b1295ecc72e1436ec08da3861e3eae3d1e
parentb0eb68ad16978ac22fb115b8ec26e1dcb15979c6
html: handle breakout tags in foreign content.

Also recognize that, in the latest version of the HTML5 spec,
foreign content is not an insertion mode, but a separate concern.

Pass tests10.dat, test 13:
<!DOCTYPE html><body><table><caption><svg><g>foo</g><g>bar</g><p>baz</table><p>quux

| <!DOCTYPE html>
| <html>
|   <head>
|   <body>
|     <table>
|       <caption>
|         <svg svg>
|           <svg g>
|             "foo"
|           <svg g>
|             "bar"
|         <p>
|           "baz"
|     <p>
|       "quux"

Also pass tests through test 15:
<!DOCTYPE html><body><table><colgroup><svg><g>foo</g><g>bar</g><p>baz</table><p>quux

R=andybalholm
CC=golang-dev
https://golang.org/cl/5494078
src/pkg/html/parse.go
src/pkg/html/parse_test.go