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

[whatwg] Allowed characters in attribute names

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Wed, 13 Jun 2007 13:50:48 +0200
Message-ID: <000101c7adb1$16076af0$1a01080a@POCZTOWIEC>
An implementation that exports the property ?sandwich? as the attribute
?sm?rg?sbord? is nuts and should not be cared about as such.

Chris

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Anne van Kesteren
Sent: Wednesday, June 13, 2007 11:23 AM
To: Kristof Zelechovski; 'Simon Pieters'; 'Thomas Broyer'; whatwg at whatwg.org
Subject: Re: [whatwg] Allowed characters in attribute names

On Wed, 13 Jun 2007 11:18:28 +0200, Kristof Zelechovski  
<giecrilj at stegny.2a.pl> wrote:
> Why should I want to use a localized attribute name for the embed  
> element? I assume that the attribute named ?sm?rgasbord? should  
> necessarily
> correspond to an internal property of the same name.  This would require  
> a localized compiler to compile the embedded object in the first place  
> because mixing natural languages like ?switch(sm?rgasbord)? in source  
> code looks bad and makes the code chaotic and unreadable.

You should not assume. These are exposed as key / value pairs depending on  
the particular plugin implementation.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Wednesday, 13 June 2007 04:50:48 UTC

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