Summary: | Consider using HTML parser to parse SVG | ||
---|---|---|---|
Product: | WebKit | Reporter: | Ryosuke Niwa <rniwa> |
Component: | SVG | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED WONTFIX | ||
Severity: | Normal | CC: | ap, krit, mjs, ossy, pdr, rhodovan.u-szeged, sam, zherczeg, zimmermann |
Priority: | P2 | Keywords: | BlinkMergeCandidate |
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Ryosuke Niwa
2013-06-10 16:43:39 PDT
The experiment kind of failed. HTML parser does not allow entities. There are thousands of SVGs out there which use custom XML entities. (Most exported by Illustrator :(.) Either the HTML parser allows a legacy mode with entities or we can not proceed with this idea. (In reply to comment #1) > The experiment kind of failed. > > HTML parser does not allow entities. There are thousands of SVGs out there which use custom XML entities. (Most exported by Illustrator :(.) > > Either the HTML parser allows a legacy mode with entities or we can not proceed with this idea. I discussed this with Kouhei and we don't think a basic level of xml entity support would be too hard to implement in the html parser. (In reply to comment #2) > (In reply to comment #1) > > The experiment kind of failed. > > > > HTML parser does not allow entities. There are thousands of SVGs out there which use custom XML entities. (Most exported by Illustrator :(.) > > > > Either the HTML parser allows a legacy mode with entities or we can not proceed with this idea. > > I discussed this with Kouhei and we don't think a basic level of xml entity support would be too hard to implement in the html parser. Does the HTML parser handle renaming of ns shorthands? Instead of xmlns:xlink="http://www.w3.org/1999/xlink" this xmlns:l="http://www.w3.org/1999/xlink" and l:href This was another pattern we saw. As far as I know, this experiment failed due to XSLT use. |