]> Cypherpunks repositories - gostls13.git/commit
html: copy attributes from extra <html> tags to root element
authorAndrew Balholm <andybalholm@gmail.com>
Tue, 22 Nov 2011 01:08:22 +0000 (12:08 +1100)
committerNigel Tao <nigeltao@golang.org>
Tue, 22 Nov 2011 01:08:22 +0000 (12:08 +1100)
commit95e60acb97f26f56b459fc0ef75f63ccb502c9ed
tree2b59e19c20dd4142bd8ae739990ac90f5a64f5fb
parent750de28d6ceb5c42637b08fb87f2de2f826ed0eb
html: copy attributes from extra <html> tags to root element

Pass tests2.dat, test 50:
<!DOCTYPE html><html><body><html id=x>

| <!DOCTYPE html>
| <html>
|   id="x"
|   <head>
|   <body>

Also pass tests through test 56:
<!DOCTYPE html>X<p/x/y/z>

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