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\Utils\DOMCompat\TokenList::__construct |
( |
| $node | ) |
|
- Parameters
-
Element | $node | The node whose classes are listed. |
◆ add()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::add |
( |
string ... | $tokens | ) |
|
◆ contains()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::contains |
( |
string | $token | ) |
|
◆ current()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::current |
( |
| ) |
|
◆ getLength()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::getLength |
( |
| ) |
|
◆ key()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::key |
( |
| ) |
|
◆ next()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::next |
( |
| ) |
|
◆ remove()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::remove |
( |
string ... | $tokens | ) |
|
◆ rewind()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::rewind |
( |
| ) |
|
◆ valid()
Wikimedia\Parsoid\Utils\DOMCompat\TokenList::valid |
( |
| ) |
|
The documentation for this class was generated from the following file:
- src/Utils/DOMCompat/TokenList.php