W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2006

[whatwg] [wf2] "data" attribute set to the same value through script

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 14 Aug 2006 09:48:28 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0608140938230.5340@dhalsim.dreamhost.com>
On Sun, 22 Jan 2006, Anne van Kesteren wrote:
>
> What happens when you modify the data DOM attribute and set it to the 
> same value the data content attribute currently has? Would that result 
> in getting the file again and appending new data (if 
> type="incremental")?

If a select or datalist element has its data  attribute manipulated via 
the DOM, then the prefilling process must start as soon as any executing 
scripts have run to completion. If the attribute is set multiple times 
during one execution of a script, only the last request must take effect. 
If the process is started while an outstanding prefilling request is still 
being attended to, the requests must all be serviced in the order they 
were started.


> Also, is "incremental" case-insensitive as noted at the end of section 
> 2.3? Or does that not apply to this attribute value?

"exact literal string" seems pretty clear to me (it's sensitive). The 
attributes doesn't take a list of values, so 2.3's sentence doesn't apply 
anyway. This will all be made much clearer when it gets integrated into 
HTML5. WF2 is a hard-to-fix mess.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 14 August 2006 02:48:28 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:28 UTC