Inkscape: A Vector Drawing Tool

Support SVG-in-HTML syntax

Reported by codedread on 2009-04-27
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
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://www.w3.org/2000/svg">
  <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://code.google.com/p/html5lib/

[1] HTML spec: http://dev.w3.org/html5/spec/Overview.html#svg

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