[whatwg] <img> element comments

Anne van Kesteren fora at annevankesteren.nl
Sat Nov 4 13:35:34 PST 2006


On Sat, 04 Nov 2006 22:27:18 +0100, Matthew Raymond  
<mattraymond at earthlink.net> wrote:
>    Right. There can be differences between the initial value of an
> attribute contained in markup and the instantaneous value in the DOM,
> such as the case with <input value=""> or <option selected>,

That's <input>.defaultValue and <option>.defaultSelected respectively.  
They are reflected one on one...


> but with
> <img>, I can't think of a situation where the |src| value could change
> from the initial value in markup. Setting the |src| attribute's
> instantaneous value and setting the value in markup are one and the same
> in this case.

This was not at all the issue I was raising.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the whatwg mailing list