Descriptiongo.net/html: Tokenizer.Raw returns the original input when tokenizer errors occur.
Two tweaks enable this:
1) Updating the raw and data span pointers when Tokenizer.Next is called, even
if an error has occurred. This prevents duplicate data from being returned by
Raw in the common case of an EOF.
2) Treating '</>' as an empty comment token to expose the raw text as a
tokenization event. (This matches the semantics of other non-token events,
e.g., '</ >' is treated as '<!-- -->'.)
Fixes issue 7029.
Patch Set 1 #Patch Set 2 : diff -r 127da548775d http://code.google.com/p/go.net #Patch Set 3 : diff -r 127da548775d http://code.google.com/p/go.net #Patch Set 4 : diff -r 127da548775d http://code.google.com/p/go.net #
Total comments: 4
Patch Set 5 : diff -r 127da548775d http://code.google.com/p/go.net #
Total comments: 2
Patch Set 6 : diff -r 127da548775d http://code.google.com/p/go.net #MessagesTotal messages: 9
|