forked from mirrors/gecko-dev
<!-- Please describe your changes on the following line: --> Fix exposure of DOM interfaces. Only two of the interfaces needed changing and I want someone to double check on `DOMException` (which I left exposed to both `Window` and `Worker`), but I used Firefox's definition as my source since the specs don't lay it out explicitly. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix (partially) #12415 (github issue number if applicable). <!-- Either: --> - [X] These changes do not require tests because they only remove code. <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: a1306e1dd3918917221a17b651e1de11ca95d224
28 lines
747 B
Text
28 lines
747 B
Text
/* 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/. */
|
|
|
|
// https://dom.spec.whatwg.org/#domtokenlist
|
|
interface DOMTokenList {
|
|
[Pure]
|
|
readonly attribute unsigned long length;
|
|
[Pure]
|
|
getter DOMString? item(unsigned long index);
|
|
|
|
[Pure]
|
|
boolean contains(DOMString token);
|
|
[Throws]
|
|
void add(DOMString... tokens);
|
|
[Throws]
|
|
void remove(DOMString... tokens);
|
|
[Throws]
|
|
boolean toggle(DOMString token, optional boolean force);
|
|
[Throws]
|
|
void replace(DOMString token, DOMString newToken);
|
|
|
|
[Pure]
|
|
attribute DOMString value;
|
|
|
|
stringifier;
|
|
iterable<DOMString?>;
|
|
};
|