Commit 83da2014 authored by Shenghou Ma's avatar Shenghou Ma

encoding/xml: fix htmlAutoClose and its generating script

Thanks Mitică for reporting this.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7308081
parent 052c942e
...@@ -1692,7 +1692,7 @@ var HTMLAutoClose = htmlAutoClose ...@@ -1692,7 +1692,7 @@ var HTMLAutoClose = htmlAutoClose
var htmlAutoClose = []string{ var htmlAutoClose = []string{
/* /*
hget http://www.w3.org/TR/html4/loose.dtd | hget http://www.w3.org/TR/html4/loose.dtd |
9 sed -n 's/<!ELEMENT (.*) - O EMPTY.+/ "\1",/p' | tr A-Z a-z 9 sed -n 's/<!ELEMENT ([^ ]*) +- O EMPTY.+/ "\1",/p' | tr A-Z a-z
*/ */
"basefont", "basefont",
"br", "br",
...@@ -1702,7 +1702,7 @@ var htmlAutoClose = []string{ ...@@ -1702,7 +1702,7 @@ var htmlAutoClose = []string{
"param", "param",
"hr", "hr",
"input", "input",
"col ", "col",
"frame", "frame",
"isindex", "isindex",
"base", "base",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment