]> Cypherpunks repositories - gostls13.git/commit
html: a first step at parsing foreign content (MathML, SVG).
authorNigel Tao <nigeltao@golang.org>
Tue, 13 Dec 2011 02:52:47 +0000 (13:52 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 13 Dec 2011 02:52:47 +0000 (13:52 +1100)
commitb9064fb13287c49ba978715af6da797428dcb77d
treeedeba86bc96ec586433fc17b01718245f40b97b7
parent0643aacee97359ba542a4b0e4600a0d029fe1c79
html: a first step at parsing foreign content (MathML, SVG).

Nodes now have a Namespace field.

Pass adoption01.dat, test 12:
<a><svg><tr><input></a>

| <html>
|   <head>
|   <body>
|     <a>
|       <svg svg>
|         <svg tr>
|           <svg input>

The other adoption01.dat tests already passed.

R=andybalholm
CC=golang-dev
https://golang.org/cl/5467075
src/pkg/html/Makefile
src/pkg/html/foreign.go [new file with mode: 0644]
src/pkg/html/node.go
src/pkg/html/parse.go
src/pkg/html/parse_test.go