[Bug 19718] Missing Named Character References

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19718

--- Comment #5 from Michael[tm] Smith <mike@w3.org> ---
OK, I went back and re-read
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17418#c3 which says:

> Based on http://www.w3.org/TR/html5/named-character-references.html, an
> error should have shown up for "&dollar" and "&minus", but the live
> validator (http://validator.w3.org) does not recognize them as named
> character references, so I imagine that is a separate bug.

The current spec actually does not require parsers to recognize semicolon-less
"&dollar" and "&minus" as special in any way, and they are not errors, so the 
actual per-spec behavior for them it to report nothing at all.

I realize that the validator (actually the HTML parser used by the validator)
does report "Named character reference was not terminated by a semicolon"
errors for semicolon-less versions of some named character references such as
"&reg;". I'd need to look at the code more to figure out why it does that for
some and not for others. I suspect it just has to do with length. But
regardless, the current spec doesn't actually define "&reg" as a parse error,
so I think the actual bug here might be that the parser is emitting any error
message at all for the "&reg" case.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Sunday, 4 November 2012 10:26:11 UTC