Skip to content

Commit

Permalink
html: add comments indicating that these have been removed from the spec
Browse files Browse the repository at this point in the history
Change-Id: I44e9234fa4dc65f2b23b3a9f31ffe9d9fcefc4f1
Reviewed-on: https://go-review.googlesource.com/c/net/+/261177
Reviewed-by: Nigel Tao <nigeltao@golang.org>
Trust: Nigel Tao <nigeltao@golang.org>
Trust: Emmanuel Odeke <emm.odeke@gmail.com>
  • Loading branch information
namusyaka authored and odeke-em committed Oct 10, 2020
1 parent dbdefad commit 4f7140c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion html/atom/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -684,7 +684,7 @@ var extra = []string{
"frame",
"frameset",
"image",
"isindex",
"isindex", // "isindex" has been removed from the spec, but are kept here for backwards compatibility.
"listing",
"malignmark",
"marquee",
Expand Down
2 changes: 1 addition & 1 deletion html/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ var isSpecialElementMap = map[string]bool{
"iframe": true,
"img": true,
"input": true,
"keygen": true,
"keygen": true, // "keygen" has been removed from the spec, but are kept here for backwards compatibility.
"li": true,
"link": true,
"listing": true,
Expand Down
2 changes: 1 addition & 1 deletion html/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ var voidElements = map[string]bool{
"hr": true,
"img": true,
"input": true,
"keygen": true,
"keygen": true, // "keygen" has been removed from the spec, but are kept here for backwards compatibility.
"link": true,
"meta": true,
"param": true,
Expand Down

0 comments on commit 4f7140c

Please sign in to comment.