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

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

From: Tony Ross <tross@microsoft.com>
Date: Tue, 20 Oct 2009 06:14:41 +0000
To: Jonas Sicking <jonas@sicking.cc>
CC: Adrian Bateman <adrianba@microsoft.com>, "public-html@w3.org" <public-html@w3.org>
Message-ID: <0BE6C9F65034784C8E2852B6F303DA170836CC19@TK5EX14MBXC119.redmond.corp.microsoft.com>
On Saturday, October 17, 2009 at 11:34 PM, Jonas Sicking wrote:
> On Sat, Oct 17, 2009 at 4:54 PM, Tony Ross <tross@microsoft.com> wrote:
> > I agree that XML Namespaces is more complex than simply using tag names
> > for identity, but I'm curious as to what specifically makes you think it is too
> > complex for the web.
> I've mentioned them before in this thread. But in short:
> The identifying name is a tuple rather than a string (arguably this could be
> fixed by changing DOM/CSS, but so far such proposals have not been made).

I see this as an issue broader than HTML 5. Perhaps such a proposal would be a good idea for the next versions of the DOM/CSS standards. Should HTML markup support namespaces, it would certainly be able to benefit retroactively from such new APIs. 

> The identifying name is different from what's being written in the markup.
> I.e. the user writes "foo:bar" in the markup, but the identifying name is {
> "somenamespaceURI", "bar" }

Given the same user must have put xmlns:foo="somenamespaceURI" earlier in the markup, I don't find this to be such a stretch. Web developers seem to get along fine with indirection via variables in JavaScript. 

> Copy-paste of markup becomes more fragile
> since it's easy to loose the prefix-mapping in the process.

Very true. I suspect copy-paste will fail more often for some developers, but I also suspect they will quickly notice that it didn't work as expected. A quick trip back to the original source should help rectify the problem. Even with complete ignorance of namespaces, trial and error will eventually cause them to bring in the prefix declaration. At this point they're likely to realize that the prefix declaration itself was important.

Received on Tuesday, 20 October 2009 06:15:17 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:01 UTC