W3C home > Mailing lists > Public > whatwg@whatwg.org > April 2007

[whatwg] Attribute for holding private data for scripting

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 11 Apr 2007 13:49:39 +0200
Message-ID: <op.tqma41ef64w2qv@id-c0020>
On Wed, 11 Apr 2007 13:40:39 +0200, Sam Ruby <rubys at intertwingly.net>  
>>>> To give a specific example: say I make my own "mjsml" prefix with  
>>>> namespace "http://example.org/mjsml". In HTML4 UAs, to look up an  
>>>> "mjsml:extension" attribute using getAttribute("mjsml:extension"). In  
>>>> HTML5 UAs, I'd have to use getAttributeNS("http://example.org/mjsml",  
>>>> "extension"). And neither technique would work on both (at least as I  
>>>> understand your proposal).

By the way, the reason this is not consistent with XML is that it would be  
just as ok to use a different prefix. By basing this on the prefix (which  
is needed if you want this to be compatible with HTML, etc.) you're moving  
the semantics from the namespace to the prefix, which seems like a bad  

Anne van Kesteren
Received on Wednesday, 11 April 2007 04:49:39 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:54 UTC