Re: Element.createElement proposal

Jonathan Watt <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Message-ID <[email protected]>
On 2009-08-11 1:07 AM, 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.

In addition to what Jonas says about tag name conflicts, making the DOM Core
spec use the HTML5 parsing rules would essentially be saying "screw you" to any
other languages that may have been using DOM Core for some time. Despite the
fact that the Web is the most important platform here, that doesn't really sit
well with me if we have a reasonable alternative, and I imagine that it'd meet
waaay more resistance. Using the same namespace as the element that the method
is called on makes it useful to all DOM consumers I think, and it's simple for
users to understand.

Jonathan
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.