- From: Domenic Denicola <notifications@github.com>
- Date: Tue, 12 Jan 2016 15:41:06 -0800
- To: whatwg/dom <dom@noreply.github.com>
Received on Tuesday, 12 January 2016 23:41:36 UTC
> @@ -8724,6 +8724,20 @@ associated <a for="/">element</a>'s
> <p>Throws a <code>TypeError</code> exception if the associated attribute has no supported tokens defined.
> </dl>
>
> +<p>The <a method for=DOMTokenList lt="supports()">supports()</a> method can be used to detect support for {{DOMTokenList}} tokens:
> +
> +<pre class=lang-javascript>
> +function domTokenListSupports(tokenList, token) {
> + if (!tokenList || !tokenList.supports) {
> + return;
> + }
> + return tokenList.supports(token);
> +};
@annevk's specs don't use semicolons. Need to fix lines 8732, 8734, 8735, 8737, 8738.
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/pull/144/files#r49532363
Received on Tuesday, 12 January 2016 23:41:36 UTC