369 Commits

Author SHA1 Message Date
Jonathan Vollebregt
2352068d55 Document DOMNamedNodeMap/DOMNodeList array access syntax (#3688) 2024-09-11 14:43:46 +01:00
Jim Winstead
c22cca7824 Warn about libxml's unstable HTML parsing (fixes #2219) (#3649)
Consolidates the duplicated note between `DOMDocument::loadHTML` and `DOMDocument::loadHTMLFile` and adds information about how libxml HTML5 parsing isn't stable across versions and the new `Dom\HTMLDocument` functions should be used. (Not documented yet, so they aren't linked, but will wire up automatically when it is.)
2024-08-10 15:12:18 -07:00
haszi
48ce43fe79 Remove empty resources pages (#3545)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-26 02:17:29 +01:00
haszi
765b2d6eec Remove empty configuration pages (#3538)
Co-authored-by: haszi <haszika80@gmail.com>
2024-07-09 22:24:55 +01:00
Gina Peter Banyard
4d17b7b494 [skip-revcheck] Convert class markup to be compatible with DocBook 5.2
Closes GH-3415
2024-06-14 17:04:53 +01:00
Niels Dossche
6f103ee118 Fix incorrect constant referencing of DOM_NOT_FOUND_ERR (#3411) 2024-05-25 13:25:42 +02:00
Niels Dossche
f44eff3695 Remove global namespace entry (#3391)
The libxml2 versions used by PHP don't have this anymore.
2024-05-18 15:50:38 +02:00
haszi
8f6fd5c55a Add missing libxml related constants (#3388)
* [skip-revcheck] Fix whitespace

* Add missing libxml related constants

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-05-18 15:06:51 +02:00
Mikhail Alferov
ad24f447d8 c14n.xml: amend new-code (#3375) 2024-05-13 23:30:52 +01:00
Niels Dossche
2a72c95c0a Clarify XPath usage in DOMNode::C14N(File) (#3374)
* Clarify XPath usage in DOMNode::C14N(File)

* Use simpara
2024-05-11 18:19:18 +02:00
Javier Spagnoletti
7015b1b29f [DOM] Update reference for DOMDocument::$validateOnParse property (#3319) 2024-04-17 17:33:06 +02:00
Máté Kocsis
d715365c09 Sync some methodsynopses with stubs (#3199)
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2024-04-16 13:02:43 +02:00
KidFlo
cb7d16cf16 Fix DOMImplementation::hasfeature() example (#3297)
* Fix DOMImplementation::hasfeature() example

Fix broken code sample in DOMImplementation::hasfeature().

* Update reference/dom/domimplementation/hasfeature.xml

---------

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2024-03-28 22:50:55 +01:00
haszi
f80105b4fc Remove constant tag from literal values (#3251)
* Remove constant tag from literal values

* [skip-revcheck] Fix whitespace

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-03-10 21:34:11 +01:00
Niels Dossche
0217f85ed2 Add a better explanation for a standalone XML document (#3172) 2024-02-14 14:26:47 +00:00
Niels Dossche
21e1338e97 Update documentation of registerNodeNs (#3151) 2024-01-28 18:17:51 +00:00
haszi
9b18516d6f Add DOMNameSpaceNode class to docs (#3060)
Co-authored-by: haszi <haszika80@gmail.com>
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2024-01-04 22:37:32 +01:00
Fernando Wobeto
a8dc22c066 DOMElement::setAttributeNS(): Fix parameter name (#3047)
* param name to qualifiedName

* Drop trailing whitespace

---------

Co-authored-by: Tim Düsterhus <tim@bastelstu.be>
2023-12-28 20:08:10 +01:00
Niels Dossche
eaf26c34fd Clarify DOMNode::getLineNo() (#3032) 2023-12-23 10:23:56 +00:00
Niels Dossche
2327968bca Fix typo in CData docs (#3006) 2023-12-09 23:26:22 +01:00
Niels Dossche
c1349f9574 Document DOM BC breaks in 8.3 (#2984)
* Document BC break changes to DOMChildNode

* Document BC break changes to DOMChildNode and DOMParentNode

* Document BC break changes to createAttributeNs

* Use entity for common DOM_HIERARCHY_REQUEST_ERR text
2023-12-02 16:51:00 +00:00
Niels Dossche
14170b04f4 Fix signature of DOMElement::toggleAttribute (#2936) 2023-11-13 12:15:31 +00:00
Niels Dossche
ccc76b5d82 Changelog for return type of DOMCharacterData::appendData (#2933) 2023-11-12 18:20:51 +00:00
Gina Peter Banyard
7b1704c9a9 dom: Add stubs generated from php-src stubs (#2813)
* dom: Add stubs generated from php-src stubs

* Clarify string behaviour

* Update DOMChildNode::after docs

* Add docs for DOMElement::after

* Remove doc file for unimplemented, to-be-deprecated method

* Add docs for DOMCharacterData::after

* Error section for DOMChildNode::before

* Add docs for DOMCharacterData::before

* Add docs for DOMElement::before

* Update errors of DOMParentNode::append

* Document DOMElement::append

* Add docs for DOMDocument::append

* DOMParentNode::prepend errors

* Add docs for DOMDocument::prepend

* Document DOMDocumentFragment::prepend

* Better description for DOMDocument::{append,prepend} docs

* Add docs for DOMElement::prepend

* Add docs for DOMDocumentFragment::append

* Add docs for DOMCharacterData::remove

* Document DOMElement::remove

* Add docs for DOMDocument::adoptNode

* Add errors for DOMChildNode::replaceWith

* Remove misleading statement

* Fix description of DOMDocumentFragment::append example

* Fix DOMElement::remove description

* Add replaceWith docs

* Add version data

* Add docs for DOMElement::replaceChildren

* Add DOMDocument::replaceChildren docs

* Add errors for DOMParentNode::replaceChildren

* Update references for DOMDocument::replaceChildren

* Add docs for DOMDocumentFragment::replaceChildren

* Iterator docs

---------

Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2023-11-12 13:40:15 +00:00
Sergey Panteleev
cdbee08c73 Fix examples section for new DOM methods 2023-11-07 19:47:25 +03:00
Sergey Panteleev
a4537eba5f [PHP 8.3] New DOM methods (#2922)
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
Co-authored-by: Gina Peter Banyard <girgias@php.net>
2023-11-07 16:05:04 +00:00
Máté Kocsis
fa6a5829a0 Synchronize ext/dom class synopses with stubs based on PHP 8.3 changes (#2890)
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2023-10-29 14:37:21 +00:00
Máté Kocsis
68b6b98138 Fix return type of DOMNodeList::index()
DOMElement was missing until https://github.com/php/php-src/pull/11342 fixed the return type.
2023-10-28 11:15:38 +02:00
Niels Dossche
40476b2960 Document LIBXML_NOXMLDECL support (#2602)
Co-authored-by: George Peter Banyard <girgias@php.net>
2023-10-05 01:05:40 +01:00
Derick Rethans
4ef716f8aa Warn that DOM does HTML 4 and not 5 2023-10-03 16:05:12 +01:00
George Peter Banyard
84001b63df Rename DOMChildNode::replaceWith file to be lowercase
All of our file named are lowercased, and this not being as such makes it harder to automatically generate new documentation from stubs
2023-09-30 20:07:06 +01:00
Niels Dossche
d2939d4611 Cleanup libxml options parameter description (#2811)
PHP 7.0 requires at least libxml2 2.6.11. So any note about an older
version is simply irrelevant.

Use an entity to use consistent, more useful wording.

This patch also gets rid of some personification.
2023-09-29 23:53:29 +01:00
Niels Dossche
bb47f4433a Clarify that the constructor is not called with classes registered via registerNodeClass (#2788) 2023-09-22 17:20:11 +01:00
Máté Kocsis
37280533a7 Synchronize list of predefined constants with stubs - part 5 2023-09-13 14:01:49 +01:00
Máté Kocsis
14767af0f0 Use new class synopsis markup (#2611)
Follow-up on https://github.com/php/phd/pull/77
2023-08-30 12:28:30 +01:00
Niels Dossche
2aa5a9c450 Update DOM intro (#2684)
There's loadHTML(File) and saveHTML(File) to to load and save HTML
documents. People use it for both XML and HTML.

Co-authored-by: George Peter Banyard <girgias@php.net>
2023-08-15 14:24:22 +02:00
Sergey Panteleev
b1ef342705 Slight improvements (#2678) 2023-08-12 16:33:22 +03:00
Niels Dossche
765749a26b Fix confusion around statically calling DOMDocument load methods (#2624)
Fixes GH-2443.
2023-08-02 15:48:20 +01:00
Máté Kocsis
9eb4a46bba Use new class synopsis markup for interfaces (#2620) 2023-07-29 05:55:01 +01:00
John Paul E. Balandan, CPA
b3ea8eaa2b Update docs for DOMNode::lookupNamespaceURI() (#2573) 2023-07-26 13:58:09 +01:00
Niels Dossche
b984d18e78 Corrections and clarifications to setAttributeNode(NS) (#2601) 2023-07-26 02:42:01 +01:00
Niels Dossche
d51d413ba4 Remove non-working, outdated example (#2589)
Calling this statically has been made impossible since PHP 8.0.
2023-07-20 13:50:48 +02:00
Niels Dossche
09b23d2b26 Add extra words of caution for validateOnParse and LIBXML_VALIDATEDTD (#2585) 2023-07-17 16:02:08 +01:00
Máté Kocsis
96a8379cd8 Render interfaces according to the new PhD format (#2556)
According to https://github.com/php/phd/pull/75
2023-07-04 20:35:33 +01:00
Dennis Birkholz
b602ec8169 DOMAttr: setting value triggers XML entity parsing (#923)
See https://3v4l.org/Lhu2c
2023-06-30 15:37:29 +01:00
Niels Dossche
842bbe35c6 Clarifications about getElementsByTagNameNS (#2501)
And while we're here, make the documentation consistent.
2023-05-31 10:34:33 +01:00
Máté Kocsis
f781803449 Narrow bool return types to true when possible (#2458) 2023-05-07 22:32:58 +02:00
othercorey
eb448489f3 Fix DOMElement::returnAttributeNS() return void description (#2345) 2023-03-08 15:49:09 +00:00
othercorey
49371fc674 Add DOMImplementation::createDocumentType() return false description (#2343) 2023-03-08 15:48:31 +00:00
othercorey
ae4ce2cb36 Add DOMImplementation::createDocument() return false description (#2342) 2023-03-08 15:48:11 +00:00