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

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