Re: [whatwg] DOMTokenList: mutation clarification

2009-08-15 Thread Ian Hickson
On Mon, 10 Aug 2009, Sylvain Pasche wrote: 2) (using the class attribute for the discussion) What should happen when you do a remove(foo) on an element which has no class attribute? My understanding is that it shouldn't add a class attribute with an empty string. That's because the

Re: [whatwg] DOMTokenList: mutation clarification

2009-08-10 Thread Sylvain Pasche
On Mon, Aug 10, 2009 at 1:09 AM, Ian Hicksoni...@hixie.ch wrote: I've reworded it to imply only one mutation event fires. Thanks. 2) (using the class attribute for the discussion) What should happen when you do a remove(foo) on an element which has no class attribute? My understanding is

Re: [whatwg] DOMTokenList: mutation clarification

2009-08-09 Thread Ian Hickson
On Thu, 9 Jul 2009, Sylvain Pasche wrote: 1) in http://www.whatwg.org/specs/web-apps/current-work/#common-dom-interfaces When the attribute is absent, then the string represented by the object is the empty string; when the object mutates this empty string, the user agent must first add the

[whatwg] DOMTokenList: mutation clarification

2009-07-09 Thread Sylvain Pasche
Hi, 1) in http://www.whatwg.org/specs/web-apps/current-work/#common-dom-interfaces When the attribute is absent, then the string represented by the object is the empty string; when the object mutates this empty string, the user agent must first add the corresponding content attribute, and