W3C home > Mailing lists > Public > public-html-comments@w3.org > December 2009

Typo in DOMTokenList and proposed change to classList

From: bolinfest <bolinfest@gmail.com>
Date: Thu, 10 Dec 2009 21:33:50 -0800 (PST)
Message-ID: <26738997.post@talk.nabble.com>
To: public-html-comments@w3.org
In the proposed spec for DOMTokenList:


(1) I think this is just a mistake, but in the green box where toggle is
defined, it does not mention its return value. Since both the IDL and
implementation for toggle mention the return value, I suspect this is
supposed to be there as the other return values are listed.

(2) Neither add() nor remove() are specified to have a return value. I
suspect that this is deliberate (if so, I was curious as to why), but I was
hoping that that could be changed. In writing up a detailed description of
the goog.dom.classes library in Closure:


I started out by saying that goog.dom.classes.add and
goog.dom.classes.remove would be able to be reimplemented with classList
when it becomes available, but I just realized that is not true because the
Closure functions support a return value and classList does not (at least,
not according to the current draft for the spec).

Is there any reason why toggle() is going to support a return value but
add() and remove() will not?


View this message in context: http://old.nabble.com/Typo-in-DOMTokenList-and-proposed-change-to-classList-tp26738997p26738997.html
Sent from the w3.org - public-html-comments mailing list archive at Nabble.com.
Received on Friday, 11 December 2009 09:14:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:26 UTC