1--TEST--
2TokenList: operate on removed element
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = DOM\XMLDocument::createFromString('<root class="A B C"/>');
9$element = $dom->documentElement;
10$list = $element->classList;
11
12$element->remove();
13
14var_dump($list);
15
16$list->remove('B');
17
18var_dump($list);
19
20?>
21--EXPECT--
22object(Dom\TokenList)#3 (2) {
23  ["length"]=>
24  int(3)
25  ["value"]=>
26  string(5) "A B C"
27}
28object(Dom\TokenList)#3 (2) {
29  ["length"]=>
30  int(2)
31  ["value"]=>
32  string(3) "A C"
33}
34