Support SVG-in-HTML syntax
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
The HTML5 spec [1] now contains a proposal for SVG-in-HTML (i.e. text/html serialization). This includes things like:
* unquoted attributes
* case-insensitive element and attribute names
* missing tags are implied (but are syntax errors)
* no requirement for namespace declarations
For example, the following document would work (but is not valid) for SVG-in-HTML:
<html><body>
<p>Hello, World!
<Svg>
<CIRCLE cx=50 cy=50 r=30 fill=blue />
<rEcT x="50" y=50.0 width=10.0E+1 height=50. fill=#0f0>
<p>Goodbye, cruel World!
</body></html>
It should be possible to copy from "<Svg" to the end of the rect element "#0f0>" paste it into a text document and bring that file up in Inkscape. Of course the DOM serialization and saving the SVG document in Inkscape would produce the following SVG XML document:
<svg xmlns="http://
<circle cx="50" cy="50" r="30" fill="blue" />
<rect x="50" y="50.0" width="10.0E+1" height="50." fill="#0f0" />
</svg>
Here is a HTML5 parser library: http://
[1] HTML spec: http://
description: | updated |
description: | updated |
description: | updated |
Changed in inkscape: | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
tags: | added: svg |