Re: Element.createElement proposal

Jonas Sicking <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
Robert O'Callahan wrote:
> What about HTML5 SVG parsing? We want a solution that works well in an 
> HTML document.
> 
> So why not use the HTML5 parsing rules to determine which namespace the 
> element gets? The HTML5 parser already has a list of which elements 
> should be SVG or MathML.

That was my initial reaction too. Unfortunately there is overlap between 
HTML names and SVG names. Specifically both languages have an <a>, 
<style> and <script> elements. And as I understand it SVG might get a 
<textarea> too.

In the parsing algorithm which one to use is determined by context. I.e. 
an <a> inside a <svg> will be a svg-a.

/ Jonas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.