Support SVG-in-HTML syntax

Bug #367997 reported by codedread on 2009-04-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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:

  <p>Hello, World!

    <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!


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="">
  <circle cx="50" cy="50" r="30" fill="blue" />
  <rect x="50" y="50.0" width="10.0E+1" height="50." fill="#0f0" />

Here is a HTML5 parser library:

[1] HTML spec:

Tags: svg Edit Tag help
codedread (codedread) on 2009-04-27
description: updated
description: updated
Simon Pieters (zcorpan) on 2009-04-27
description: updated
jazzynico (jazzynico) on 2009-06-04
Changed in inkscape:
importance: Undecided → Wishlist
status: New → Confirmed
tags: added: svg
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers