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 is unordered but yet requires sorting

2009-07-28 Thread Sylvain Pasche
On Tue, Jul 28, 2009 at 5:52 AM, Jonas Sickingjo...@sicking.cc wrote: By the way, preserving duplicates shouldn't be much code complexity if I'm not mistaken. I take it you mean *removing* duplicates here, right? Oops, yes. The only required code change would be to use a hashset when

Re: [whatwg] DOMTokenList is unordered but yet requires sorting

2009-07-27 Thread Sylvain Pasche
On Tue, Jul 28, 2009 at 2:17 AM, Ian Hicksoni...@hixie.ch wrote: On Sun, 12 Jul 2009, Jonas Sicking wrote: Oh, I have forseen that. Is it really necessary to remove duplicates ? I imagine DOMTokenList to be similar to what can be achieved with a String.split(), but then it would be just

Re: [whatwg] Definitions of DOMTokenList algorithms and element.classList

2009-07-22 Thread Sylvain Pasche
On Wed, Jul 22, 2009 at 6:07 PM, Anne van Kesterenann...@opera.com wrote: On Mon, 13 Jul 2009 05:16:19 +0200, Ian Hickson i...@hixie.ch wrote: I've clarified that DOMTokenList is always case-sensitive. We don't want to be adding more quirk-mode behaviours. Using quirks mode is not conforming

[whatwg] DOMTokenList and whitespace

2009-07-20 Thread Sylvain Pasche
Hi, 1) What's the reason for preserving whitespace when a DOMTokenList method is changing the attribute? 2) If preserving whitespace is not important, what about normalizing whitespace during mutation? By normalizing whitespace, I mean splitting tokens (keeping unique ones), doing 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

Re: [whatwg] DOMTokenList feedback

2009-07-06 Thread Sylvain Pasche
On 7/6/2009 9:08 AM, Kristof Zelechovski wrote: Regarding DOMTokenList, why not: contains(): true add,remove,toggle(): no effect? That could be an option. There is already a INVALID_CHARACTER_ERR exception thrown if the token contains spaces. So I think it would be consistent

[whatwg] DOMTokenList feedback

2009-07-05 Thread Sylvain Pasche
Hi, I'm looking at the Gecko implementation of element.classList. I had a few comments about the spec. 1) http://html5.org/tools/web-apps-tracker?from=3253to=3254 missed something. There is still a mention of alphabetical sort order in the beginning of section 2.8.3: element = tokenlist .

[whatwg] Cross browser automated tests

2008-05-20 Thread Sylvain Pasche
Hi, I'm working on an experimental project to build a set of cross browser automated tests. The idea would be to have a repository of browser independent automated tests. Existing test suites could be imported into it. These tests could be run automatically on today's available browsers with