[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-doc-bugs
Subject:    [DOC-BUGS] Doc #77219 [Ver->Csd]: childNodes property not in DOMElement manual
From:       cmb () php ! net
Date:       2018-11-29 18:28:35
Message-ID: E1gSR3D-0006uc-Gq () bugs ! php ! net
[Download RAW message or body]

Edit report at https://bugs.php.net/bug.php?id=77219&edit=1

 ID:                 77219
 Updated by:         cmb@php.net
 Reported by:        pavel dot pilat at gmail dot com
 Summary:            childNodes property not in DOMElement manual
-Status:             Verified
+Status:             Closed
 Type:               Documentation Problem
 Package:            DOM XML related
 Operating System:   Windows 7 x64 SP1
 PHP Version:        7.1.24
 Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


Previous Comments:
------------------------------------------------------------------------
[2018-11-29 18:27:55] cmb@php.net

Automatic comment from SVN on behalf of cmb
Revision: http://svn.php.net/viewvc/?view=revision&revision=346131
Log: Fix #77219: childNodes property not in DOMElement manual

We document the inherited properties of all DOM classes.

------------------------------------------------------------------------
[2018-11-29 12:47:58] pavel dot pilat at gmail dot com

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.

------------------------------------------------------------------------
[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