W3C home > Mailing lists > Public > www-validator-cvs@w3.org > November 2012

[Bug 19718] Missing Named Character References

From: <bugzilla@jessica.w3.org>
Date: Sun, 04 Nov 2012 10:26:10 +0000
To: www-validator-cvs@w3.org
Message-ID: <bug-19718-169-d58b4kAq0P@http.www.w3.org/Bugs/Public/>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:53 UTC