]> Cypherpunks repositories - gostls13.git/commit
html: refactor the tokenizer; parse "</>" correctly.
authorNigel Tao <nigeltao@golang.org>
Mon, 17 Oct 2011 22:42:16 +0000 (09:42 +1100)
committerNigel Tao <nigeltao@golang.org>
Mon, 17 Oct 2011 22:42:16 +0000 (09:42 +1100)
commite5f3dc8bc54942db96f55b1b6207edfe69ca4021
treea61fceefe4f9b72e0b55a8838de9b6391754a023
parentd2b73730b74ed103add581d992cbca31012b0f3b
html: refactor the tokenizer; parse "</>" correctly.

Previously, Next would call either nextText or nextTag, but nextTag
could also call nextText. Both nextText and nextTag were responsible
for detecting "</a" end tags and "<!" comments. This change simplifies
the call chain and puts that responsibility in a single place.

R=andybalholm
CC=golang-dev
https://golang.org/cl/5263050
src/pkg/html/token.go
src/pkg/html/token_test.go