[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-bugs
Subject: [DOC-BUGS] Doc #77219 [Opn]: childNodes property not in DOMElement manual
From: "pavel dot pilat at gmail dot com" <php-bugs () lists ! php ! net>
Date: 2018-11-29 12:47:58
Message-ID: E1gSLja-0005NW-UX () bugs ! php ! net
[Download RAW message or body]
Edit report at https://bugs.php.net/bug.php?id=77219&edit=1
ID: 77219
User updated by: pavel dot pilat at gmail dot com
Reported by: pavel dot pilat at gmail dot com
Summary: childNodes property not in DOMElement manual
Status: Open
Type: Documentation Problem
Package: DOM XML related
Operating System: Windows 7 x64 SP1
PHP Version: 7.1.24
Block user comment: N
Private report: N
New Comment:
I see - I was confused by the /* Inherited methods */ section which specifies methods \
already described on the DOMNode page. I thought the same was supposed to be for \
inherited properties.
If not feel free to close this bug.
Previous Comments:
------------------------------------------------------------------------
[2018-11-29 12:38:43] Wes dot example at example dot org
It's in DOMNode, DOMElement extends DomNode
------------------------------------------------------------------------
[2018-11-29 12:35:38] pavel dot pilat at gmail dot com
Description:
------------
I ran into this code (from https://www.w3schools.com/php/php_xml_dom.asp), you may \
see it in the test script section.
I tried it and it works. What attracted my attention was "childNodes" property of $x \
which is DOMElement. The manual page for the class DOMElement does not describe this \
property. Please add it.
http://php.net/manual/en/class.domelement.php
Test script:
---------------
<?php
$xmlDoc = new DOMDocument();
$xmlDoc->load("note.xml");
$x = $xmlDoc->documentElement;
foreach ($x->childNodes AS $item) {
print $item->nodeName . " = " . $item->nodeValue . "<br>";
}
?>
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=77219&edit=1
--
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic