mirror of
https://github.com/php/php-src.git
synced 2026-04-18 21:41:22 +02:00
Dom level 2 core, DOM level 3 core and the DOM living standard agree that `childNodes` always return a `NodeList`, and never `null`.
18 lines
338 B
PHP
18 lines
338 B
PHP
--TEST--
|
|
Bug #79271 (DOMDocumentType::$childNodes is NULL)
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('dom')) die('skip dom extension not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
$dom = new DOMImplementation();
|
|
$type = $dom->createDocumentType('html');
|
|
var_dump($type->childNodes);
|
|
?>
|
|
--EXPECTF--
|
|
object(DOMNodeList)#%d (1) {
|
|
["length"]=>
|
|
int(0)
|
|
}
|