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

[whatwg] Attribute for holding private data for scripting

From: Henri Sivonen <hsivonen@iki.fi>
Date: Sun, 8 Apr 2007 21:12:06 +0300
Message-ID: <6A37B0F0-0104-4756-9450-09A7B042600C@iki.fi>
At http://www.quirksmode.org/blog/archives/2007/04/html_5.html PPK  
suggests having an attribute for storing private data for scripts.

Currently, one can invent an attribute and it will work for scripts.  
However, it will look ugly for conformance checking. Since this is  
essentially a conformance definition issue as browsers would not be  
required to implement anything new (assuming a new reflecting  
attribute on HTMLElement is deemed unnecessary), adding an attribute  
for script-private data would be rather easy.

I think it would be worthwhile to add an attribute for script-private  
data to common attributes, so that scripters who need one and want to  
be conforming don't need to abuse e.g. title.

-- 
Henri Sivonen
hsivonen at iki.fi
http://hsivonen.iki.fi/
Received on Sunday, 8 April 2007 11:12:06 UTC

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