1--TEST--
2TokenList: supports
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = DOM\XMLDocument::createFromString('<root class="a b c"><child/></root>');
9$element = $dom->documentElement;
10try {
11    $element->classList->supports('a');
12} catch (TypeError $e) {
13    echo $e->getMessage(), "\n";
14}
15
16?>
17--EXPECT--
18Attribute "class" does not define any supported tokens
19