Skip to content

Commit af7627f

Browse files
dmitrisLukeShu
authored andcommitted
x/net/html: Sync the html parser and atom with the current whatwg spec
The current documentation as well as set of atoms and attributes has gotten slightly out of sync with the current state of the WHATWG html5 specification. The change adds and removes several of the atoms and attributes, updates the documentation (such as steps numbering in inBodyEndTagFormatting) and modifies the spec URLs to https:// Change-Id: I6dfa52785858c1521301b20b1e585e19a08b1e98 Reviewed-on: https://go-review.googlesource.com/6173 Reviewed-by: Nigel Tao <nigeltao@golang.org> Cherry-picked-from: golang/net@3d87fd6
1 parent 0940a8d commit af7627f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/html/escape.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ var replacementTable = [...]rune{
5656
func unescapeEntity(b []byte, dst, src int) (dst1, src1 int) {
5757
const attribute = false
5858

59-
// http://www.whatwg.org/specs/web-apps/current-work/multipage/tokenization.html#consume-a-character-reference
59+
// https://html.spec.whatwg.org/multipage/syntax.html#consume-a-character-reference
6060

6161
// i starts at 1 because we already know that s[0] == '&'.
6262
i, s := 1, b[src:]

0 commit comments

Comments
 (0)