Browse Source

html: add main and keygen as special element

Also, the isindex element has been remove from specification,
so this commit adds a comment about it.

Change-Id: I79a9b1eb9dae8274e2ca498ab73b2e73521d54e9
Reviewed-on: https://go-review.googlesource.com/64230
Reviewed-by: Tom Bergan <tombergan@google.com>
Run-TryBot: Tom Bergan <tombergan@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
namusyaka 8 years ago
parent
commit
b60f3a9210
1 changed files with 3 additions and 1 deletions
  1. 3 1
      html/const.go

+ 3 - 1
html/const.go

@@ -52,10 +52,12 @@ var isSpecialElementMap = map[string]bool{
 	"iframe":     true,
 	"iframe":     true,
 	"img":        true,
 	"img":        true,
 	"input":      true,
 	"input":      true,
-	"isindex":    true,
+	"isindex":    true, // The 'isindex' element has been removed, but keep it for backwards compatibility.
+	"keygen":     true,
 	"li":         true,
 	"li":         true,
 	"link":       true,
 	"link":       true,
 	"listing":    true,
 	"listing":    true,
+	"main":       true,
 	"marquee":    true,
 	"marquee":    true,
 	"menu":       true,
 	"menu":       true,
 	"meta":       true,
 	"meta":       true,