W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2011

[whatwg] namespaces in html5

From: Anne van Kesteren <annevk@opera.com>
Date: Mon, 18 Jul 2011 16:47:40 +0200
Message-ID: <op.vytkpqc664w2qv@annevk-macbookpro.local>
On Mon, 18 Jul 2011 16:33:47 +0200, David Karger <karger at mit.edu> wrote:
> Yes, we could,  but it doesn't address the two objections I raised to  
> data- prefix:
> 1.  it isn't actually a data attribute, so prefixing with data seems odd  
> (appearance; minor)

It is custom data implemented by a JavaScript library. Seems like a  
perfect fit.


> 2.  there's no way to guarantee someone else won't use the same  
> data-exhibit prefix, causing incompatibilities (functionality; major)

"exhibit" plus the ability for authors to configure that word should be  
enough to prevent problems. But I doubt you will get prefix clashes in  
practice.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Monday, 18 July 2011 07:47:40 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:34 UTC