W3C home > Mailing lists > Public > www-svg@w3.org > April 2011

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

From: <bugzilla@jessica.w3.org>
Date: Thu, 28 Apr 2011 03:56:58 +0000
To: www-svg@w3.org
Message-Id: <E1QFILa-0007yt-J8@jessica.w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:48 GMT