2009-08-12 01:55:14 -07:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2009-08-12 01:55:14 -07:00
|
|
|
|
|
|
|
#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
|
2009-12-30 15:29:40 -08:00
|
|
|
* <http://www.whatwg.org/html5/#domtokenlist>
|
2009-08-12 01:55:14 -07:00
|
|
|
*/
|
|
|
|
[scriptable, uuid(c6f1e160-eeeb-404a-98b0-6f1246520b6e)]
|
|
|
|
interface nsIDOMDOMTokenList : nsISupports
|
|
|
|
{
|
|
|
|
readonly attribute unsigned long length;
|
|
|
|
|
2012-09-05 13:49:53 -07:00
|
|
|
[getter,binaryname(MozItem)] DOMString item(in unsigned long index);
|
2009-12-30 15:29:40 -08:00
|
|
|
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);
|
2009-08-12 01:55:14 -07:00
|
|
|
|
2011-08-22 02:14:13 -07:00
|
|
|
[stringifier] DOMString toString();
|
2009-08-12 01:55:14 -07:00
|
|
|
};
|