A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on IRC (such as one of these permanent autoconfirmed members).

Difference between revisions of "Diagrams in HTML"

From WHATWG Wiki
Jump to: navigation, search
(Hardcoded element names)
Line 23: Line 23:
  
 
(The <ext> element would have a name that doesn't clash with existing content. Inside you can use XML.)
 
(The <ext> element would have a name that doesn't clash with existing content. Inside you can use XML.)
 +
 +
Note that this is similar to IE's "XML islands" with the <xml> element.  It's believed that there are some conflicts with the <xml> element itself, since it creates a separate document that is tied to the <xml> element in the DOM.

Revision as of 03:09, 1 April 2008

Please put ideas for what it should look like here.

Each example should have a green circle, with an embedded HTML table.

Hardcoded element names

 <p>
   Hello world.
   <svg viewbox="0 0 10 10">
     <circle x=5 y=5 r=5 stroke=green>
     <foreignObject> <table><tr><td>1<td>2<tr><td>3<td>4</table> </foreignObject>
   </svg>
 </p>

Tokeniser recovers from errors by ignoring them and moving on.

<ext>

 <p>Hello world. <ext><svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 10 10"><circle x="5" y="5 r="5" stroke="green"/></svg></ext> </p>

(The <ext> element would have a name that doesn't clash with existing content. Inside you can use XML.)

Note that this is similar to IE's "XML islands" with the <xml> element. It's believed that there are some conflicts with the <xml> element itself, since it creates a separate document that is tied to the <xml> element in the DOM.