1
0
mirror of https://github.com/golang/go synced 2024-11-12 09:30:25 -07:00

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
This commit is contained in:
Shenghou Ma 2013-02-13 02:27:42 +08:00
parent 052c942e20
commit 83da2014a8

View File

@ -1692,7 +1692,7 @@ var HTMLAutoClose = htmlAutoClose
var htmlAutoClose = []string{
/*
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",
"br",
@ -1702,7 +1702,7 @@ var htmlAutoClose = []string{
"param",
"hr",
"input",
"col ",
"col",
"frame",
"isindex",
"base",