1--TEST--
2TokenList: value edge cases
3--EXTENSIONS--
4dom
5--FILE--
6<?php
7
8$dom = DOM\XMLDocument::createFromString('<root/>');
9$list = $dom->documentElement->classList;
10
11var_dump($list->value);
12
13try {
14    $list->value = "\0";
15} catch (ValueError $e) {
16    echo $e->getMessage(), "\n";
17}
18
19var_dump($list->value);
20
21?>
22--EXPECT--
23string(0) ""
24Value must not contain any null bytes
25string(0) ""
26