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

http://www.w3.org/Bugs/Public/show_bug.cgi?id=12558

Cameron McCormack <cam@mcc.id.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cam@mcc.id.au

--- Comment #1 from Cameron McCormack <cam@mcc.id.au> 2011-04-28 03:56:57 UTC ---
Note that some people replied to the bugmail on www-svg:
http://lists.w3.org/Archives/Public/www-svg/2011Apr/0067.html

One more solution is to have a DTD that defines these entities, and to
reference this from your document.

  <!DOCTYPE svg PUBLIC "blahblah" "http://www.w3.org/somewhere/whatever.dtd">
  <svg xmlns="http://www.w3.org/2000/svg">
    <text y="20">a &minus; b</text>
  </svg>

It's not a great long term solution, since we are moving away from DTDs.  If
processors don't recognise the public ID, then the XML processors will have to
be operating in validating mode to download the DTD, which many won't.

If we want to allow documents like

  <svg xmlns="http://www.w3.org/2000/svg">
    <text y="20">a &minus; b</text>
  </svg>

without the DOCTYPE declaration, then this would require a change at the XML
layer level.  Some people think this is the right way to solve this problem,
too.

Remember that with SVG in text/html, all of HTML's entities will work already:

  <!DOCTYPE html>
  <title>hello</title> 
  <svg>
    <text y="20">a &minus; b</text>
  </svg>

http://livedom.validator.nu/?%3C!DOCTYPE%20html%3E%0A%3Ctitle%3Ehello%3C%2Ftitle%3E%20%0A%3Csvg%3E%0A%20%20%3Ctext%20y%3D%2220%22%3Ea%20%26minus%3B%20b%3C%2Ftext%3E%0A%3C%2Fsvg%3E

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Thursday, 28 April 2011 03:57:00 UTC