Welcome to WebHeadStart.org

Web Technologies

Sponsored By

WebHeadStart.org is currently in beta.
Please pardon our appearance as we work to provide you with the most comprehensive reference on today's web technologies.

Interested in advertising on WebHeadStart? Become an advertising partner today!

[WWW-HTML Mailing List Archive Home] [Messages By Thread] [Messages By Date]

Re: XHTML attributes and namespace, clarification needed

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 14 Dec 2004 14:14:21 +0100
To: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Cc: www-html@w3.org, www-style@w3.org
Message-ID: <41cfe472.112840984@smtp.bjoern.hoehrmann.de>

* Daniel Glazman wrote:
>I understand perfectly why we need namespaceless elements and attributes. But
>I don't feel XHTML attributes fall into that case. XHTML user agents recognize
>XHTML attributes as defined by the XHTML language, they act as if they were
>belonging to the XHTML namespace. Keeping XHTML attributes namespaceless means
>a semantic hack in user agents: "Oh, this has no namespace but it's an XHTML
>attribute, so we know what to do with it". In other terms, user agents act as
>if they had a hardcoded namespace for these attributes.

The attributes are "local" to their element, consider the type attribute
in HTML 4.01,

  <ul     type = '...'>
  <style  type = '...'>
  <input  type = '...'>
  <button type = '...'>

and consider the xml:lang attribute. The xml:lang attribute has the same
semantics regardless of what element it is attached to; this is not true
for the type attribute above, sometimes it is used to control the style
of an element, sometimes it indicates the stylesheet language, sometimes
it indicates what kind of input control an element should be. You have
certain expectations from namespace qualified attributes, that they have
"global" semantics rather than local semantics, this would not be true
for an XHTML 1.0 xhtml:type attribute.
-- 
Björn Höhrmann · mailto:bjoern@h... · http://bjoern.hoehrmann.de 
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de 
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/  
Received on Tuesday, 14 December 2004 13:14:38 GMT
Valid XHTML 1.0! Valid CSS! Site Map | Privacy Policy | Terms of Use | WebHeadStart.org © 2005 All Rights Reserved.