]> Cypherpunks repositories - gostls13.git/commit
html: propagate foreign namespaces only when adding foreign content.
authorNigel Tao <nigeltao@golang.org>
Tue, 10 Jan 2012 23:15:40 +0000 (10:15 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 10 Jan 2012 23:15:40 +0000 (10:15 +1100)
commitaa033c20b356b608e2fcc51e284cf711f952309b
treee7416d5b4c5993e1626f742851cc9ace192fa5d4
parentdcdc309c7cec0785cd83ddeb752ccebc29a1f83d
html: propagate foreign namespaces only when adding foreign content.

Pass tests10.dat, test 31:
<div><svg><path><foreignObject><p></div>a

| <html>
|   <head>
|   <body>
|     <div>
|       <svg svg>
|         <svg path>
|           <svg foreignObject>
|             <p>
|               "a"

Also pass test 32:
<!DOCTYPE html><svg><desc><div><svg><ul>a

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