]> Cypherpunks repositories - gostls13.git/commit
html: parse raw text and RCDATA elements, such as <script> and <title>.
authorNigel Tao <nigeltao@golang.org>
Tue, 18 Oct 2011 21:03:30 +0000 (08:03 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 18 Oct 2011 21:03:30 +0000 (08:03 +1100)
commitb1fd528db5305d85c6dfabd8ff7d0656c7f97a39
treed6cc2c1f9bcf11694a1d7fa3336e2cdd539eea09
parent78ad19f214394a1cb1e96d448bacb84011204452
html: parse raw text and RCDATA elements, such as <script> and <title>.

Pass tests1.dat, test 26:
#data
<script><div></script></div><title><p></title><p><p>
#document
| <html>
|   <head>
|     <script>
|       "<div>"
|     <title>
|       "<p>"
|   <body>
|     <p>
|     <p>

Thanks to Andy Balholm for driving this change.

R=andybalholm
CC=golang-dev
https://golang.org/cl/5301042
src/pkg/html/parse.go
src/pkg/html/parse_test.go
src/pkg/html/render.go
src/pkg/html/token.go
src/pkg/html/token_test.go