W3C home > Mailing lists > Public > public-html@w3.org > June 2007

Re: Conceptual modelling of attributes

From: Anne van Kesteren <annevk@opera.com>
Date: Tue, 12 Jun 2007 09:50:15 +0200
To: "Karl Dubost" <karl@w3.org>, "HTML WG" <public-html@w3.org>
Message-ID: <op.ttstd1kg64w2qv@annevk-t60.oslo.opera.com>

On Tue, 12 Jun 2007 06:56:01 +0200, Karl Dubost <karl@w3.org> wrote:
> Le 12 juin 2007 à 01:54, Anne van Kesteren a écrit :
>> On Mon, 11 Jun 2007 17:20:39 +0200, Henrik Dvergsdal  
>> <henrik.dvergsdal@hibo.no> wrote:
>>> getAttribute must return null if the attribute is not present.
>>
>> It is correct that user agents have to do that, but there is no  
>> specification so far that supports that assertion.
>
> Hmmm, it sounds strange, to be able to retrieve the value of something  
> which doesn't exist. Because in this case getAttributeNode = Null
> http://www.w3.org/TR/2000/REC-DOM-Level-2-Core-20001113/ 
> core.html#ID-745549614

Sure, but getAttribute doesn't. getAttribute returns the empty string per  
specification. There needs to be a new type of DOM specification for web  
browsers...


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
Received on Tuesday, 12 June 2007 07:50:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 9 May 2012 00:16:00 GMT