Implements the parts of DOMTokenList interface which are used by Parsoid.
More...
|
| | __construct ( $node) |
| |
| | getLength () |
| | Return the number of CSS classes this element has.
|
| |
| | contains (string $token) |
| | Checks if the element has a given CSS class.
|
| |
| | add (string ... $tokens) |
| | Add CSS classes to the element.
|
| |
| | remove (string ... $tokens) |
| | Remove CSS classes from the element.
|
| |
|
| current () |
| |
|
| next () |
| |
|
| key () |
| |
|
| valid () |
| |
|
| rewind () |
| |
Implements the parts of DOMTokenList interface which are used by Parsoid.
- Note
- To improve performance, no effort is made to keep the TokenList in sync with the real class list if that is changed from elsewhere.
- See also
- https://dom.spec.whatwg.org/#interface-domtokenlist
◆ __construct()
| Wikimedia\Parsoid\Core\DOMCompatTokenList::__construct |
( |
| $node | ) |
|
- Parameters
-
| Element | $node | The node whose classes are listed. |
◆ add()
| Wikimedia\Parsoid\Core\DOMCompatTokenList::add |
( |
string ... | $tokens | ) |
|
◆ contains()
| Wikimedia\Parsoid\Core\DOMCompatTokenList::contains |
( |
string | $token | ) |
|
◆ getLength()
| Wikimedia\Parsoid\Core\DOMCompatTokenList::getLength |
( |
| ) |
|
◆ remove()
| Wikimedia\Parsoid\Core\DOMCompatTokenList::remove |
( |
string ... | $tokens | ) |
|
The documentation for this class was generated from the following file:
- src/Core/DOMCompatTokenList.php