]> Cypherpunks repositories - gostls13.git/commit
html: parse DOCTYPE into name and public and system identifiers
authorAndrew Balholm <andybalholm@gmail.com>
Wed, 23 Nov 2011 22:28:58 +0000 (09:28 +1100)
committerNigel Tao <nigeltao@golang.org>
Wed, 23 Nov 2011 22:28:58 +0000 (09:28 +1100)
commit77b0ad1e806580e47e4f682dfb912c55e1411b73
treeee5f208102be1f8295b68215ffe2861ca619fa99
parentb3923a27dd80592ec4cd21ca04ea2a736578c9ad
html: parse DOCTYPE into name and public and system identifiers

Pass tests2.dat, test 59:
<!DOCTYPE <!DOCTYPE HTML>><!--<!--x-->-->

| <!DOCTYPE <!doctype>
| <html>
|   <head>
|   <body>
|     ">"
|     <!-- <!--x -->
|     "-->"

Pass all the tests in doctype01.dat.

Also pass tests2.dat, test 60:
<!doctype html><div><form></form><div></div></div>

R=nigeltao
CC=golang-dev
https://golang.org/cl/5437045
src/pkg/html/parse.go
src/pkg/html/parse_test.go
src/pkg/html/render.go