gecko/dom/interfaces/core/nsIDOMDOMTokenList.idl
Peter Van der Beken 71b55b1f68 Fix for bug 788532 (Add the new DOM bindings API to DOM lists). r=bz.
--HG--
extra : rebase_source : 18e21a786b6a9cc2aeada52ba5ca3a2614cb596b
2012-09-05 22:49:53 +02:00

28 lines
1.1 KiB
Plaintext

/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "domstubs.idl"
/**
* The DOMTokenList interface represents an interface to an underlying string
* that consists of a set of space-separated tokens.
*
* For more information on this interface please see
* <http://www.whatwg.org/html5/#domtokenlist>
*/
[scriptable, uuid(c6f1e160-eeeb-404a-98b0-6f1246520b6e)]
interface nsIDOMDOMTokenList : nsISupports
{
readonly attribute unsigned long length;
[getter,binaryname(MozItem)] DOMString item(in unsigned long index);
boolean contains([Null(Stringify)] in DOMString token);
void add([Null(Stringify)] in DOMString token);
void remove([Null(Stringify)] in DOMString token);
boolean toggle([Null(Stringify)] in DOMString token);
[stringifier] DOMString toString();
};