W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: ISSUE-41/ACTION-97 decentralized-extensibility

From: Jonas Sicking <jonas@sicking.cc>
Date: Tue, 20 Oct 2009 14:51:30 -0700
Message-ID: <63df84f0910201451v182dd702w337d141cc969e9c5@mail.gmail.com>
To: Julian Reschke <julian.reschke@gmx.de>
Cc: James Graham <jgraham@opera.com>, Tony Ross <tross@microsoft.com>, Adrian Bateman <adrianba@microsoft.com>, "public-html@w3.org" <public-html@w3.org>
On Tue, Oct 20, 2009 at 12:30 PM, Julian Reschke <julian.reschke@gmx.de> wrote:
> James Graham wrote:
>>
>> Quoting Tony Ross <tross@microsoft.com>:
>>
>>> Examples:
>>> 1. Implicit namespaces for HTML, SVG, and MathML are generated by  the
>>> current HTML 5 parsing algorithm.
>>
>> That's a bug not a feature. Or rather it is an undesirable consequence of
>> the way that SVG and MathML have been grandfathered into the language. I
>> expect authors to be pretty confused that they can write
>> <svg><circle></circle></svg> (plus some attributes) and see a circle but
>> doing
>>
>> var svg = document.createElement("svg");
>> var circle = document.createElement("circle")
>> //set some attributes for radius and position here
>> svg.appendChild(circle)
>> document.body.appendChild(circle)
>>
>> won't have the same effect
>
> Sounds like
>
>  <svg><circle></circle></svg>
>
> should then not create elements in the SVG namespace, and xmlns:* would be
> required? Sounds good to me.

That would mean that authors have to mess around with namespaces *even
more*. That does not sound good to me.

It also doesn't make the above code work, so I'm not sure how it
solves the raised problem. The problem is that people have been able
to use createElement/nodeName/tagName since the creation of DOM Core
Level 1 in order to manipulate their web pages. With SVG/MathML in
HTML that no longer is true.

/ Jonas
Received on Tuesday, 20 October 2009 21:52:25 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:09 UTC