W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2013

Re: MutationObserver does not observe state changes

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 31 Jul 2013 10:06:50 -0700
Message-ID: <51F9442A.5090408@mit.edu>
To: www-dom@w3.org
On 7/31/13 8:50 AM, Bradley Meck wrote:
> Right now we have the ability to set but not read internal state using
> attributes.

That's not quite right for your testcase.

Right now, as long as the value is the default value setting the 
attribute (which sets the default value) also sets the value.  Likewise, 
reading the attribute, which reads the default value, reads the value.

Once the value and the default value diverge, via the value being 
explicitly changed, setting and reading the attribute still sets and 
reads the default value (as reflected by the .defaultValue property or 
the behavior of reset()).  But the value no longer has anything to do 
with the default value.

-Boris
Received on Wednesday, 31 July 2013 17:07:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:03 UTC