Re: [Bug 12558] New: Support HTML's full set of character entities in SVG

bugzilla@jessica.w3.org wrote:

> 
> I think it makes sense to extend the spec and support HTML's full set of
> character entities in SVG.
> 
In the early days of XML and SVG, the feeling was that HTML was 
suffering from entity bloat.   I believe it was a deliberate policy to 
not import all the HTML named single character strings.

They only offer any benefit for hand coding, and some HTML editors will 
reduce them to the actual character if the character encoding will 
support it.

Whilst I haven't tried this with a real SVG processor, as far as I can 
tell, it should be possible to define ones own named general entities at 
the head of an SVG document, so you could define the HTML single 
character general entities locally.  I do rather suspect that there are 
non-XML compliant SVG processors.

As may be hinted above, there aren't actually character entities, but 
rather general entities that just happen to have a single character value.

Also, −, in the example, has no existence other than as a macro 
that contains a single character.  The equivalent character reference is 
truly equivalent, it is not an approximation.

-- 
David Woolley
Emails are not formal business letters, whatever businesses may want.
RFC1855 says there should be an address here, but, in a world of spam,
that is no longer good advice, as archive address hiding may not work.

Received on Tuesday, 26 April 2011 22:53:04 UTC