Oh my. I just poked at this and the result is far more interesting than I anticipated. It's not that browsers are just being lax in requiring the semicolons on entities; rather, it's that the WhatWG spec for HTML departs from the original W3C spec, and actually ALLOWS entities with no trailing semicolon for a specific list of "legacy" entities. That list includes ¬, for some odd reason. Source: https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references Modern browsers have all agreed to follow WhatWG, I now know, so the W3C spec is actually the wrong source.
We almost surely don't want to validate against a list of these (they might change with spec versions anyway; I don't know). So this makes Doug's fix still correct, but also more urgent. xmlhtml is currently not just making a suboptimal choice for some corner case, but actually incorrect based on the WhatWG spec! This also raises the specter that there are other differences between WhatWG and W3C specs that could impact other decisions. I don't currently have the time to review the new spec to verify this. On Sat, Jan 26, 2019 at 10:00 PM MightyByte <mightyb...@gmail.com> wrote: > It seems like we could just change our definition of "looks like an > entity" to not require the semicolon. If any valid entity is a prefix of > the characters following the ampersand, then we would consider it > ambiguous. Do you think that would solve your problem? I don't see any > problem with this because it would still conform to the spec. > > I would accept a pull request implementing this. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "Snap Framework" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to snap_framework+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "Snap Framework" group. To unsubscribe from this group and stop receiving emails from it, send an email to snap_framework+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.