]> Cypherpunks repositories - gostls13.git/commit
html: don't emit text token for empty raw text elements.
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 9 Nov 2011 21:09:54 +0000 (08:09 +1100)
committerNigel Tao <nigeltao@golang.org>
Wed, 9 Nov 2011 21:09:54 +0000 (08:09 +1100)
commitddc5ec642da599da5b942a174407bcd5ae32c673
tree30c8c52fec6911d83ae075bdbbe16374b39d36b8
parent23ffbe611d770e9f4e4d6af57eba3c9a4f72f383
html: don't emit text token for empty raw text elements.

Pass tests1.dat, test 99:
<script></script></div><title></title><p><p>

| <html>
|   <head>
|     <script>
|     <title>
|   <body>
|     <p>
|     <p>

Also pass tests through test 105:
<ul><li><ul></li><li>a</li></ul></li></ul>

R=nigeltao
CC=golang-dev
https://golang.org/cl/5373043
src/pkg/html/parse_test.go
src/pkg/html/token.go