History log of /php-src/ext/dom/php_dom.stub.php (Results 26 – 50 of 70)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# d17069e1 12-Jul-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Implement DOMNode::getRootNode()

ref: https://dom.spec.whatwg.org/#dom-node-getrootnode

Closes GH-11693.


# 10d7e8dc 12-Jul-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Implement DOMElement::getAttributeNames()

ref: https://dom.spec.whatwg.org/#dom-element-getattributenames


# ea794e9c 11-Jul-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Implement DOMNode::contains()

ref: https://dom.spec.whatwg.org/#dom-node-contains


# ed6df1f0 25-Jun-2023 Niels Dossche <7771979+nielsdos@users.noreply.github.com>

Implement DOMDocument::adoptNode()

For the past 20 years this threw a "not yet implemented" exception. But
the function was actually there (albeit not documented) and could be called...

Implement DOMDocument::adoptNode()

For the past 20 years this threw a "not yet implemented" exception. But
the function was actually there (albeit not documented) and could be called...

Closes GH-11333.

show more ...


# 761b9a44 29-May-2023 divinity76

Fix return value in stub file for DOMNodeList::item

Not explicitly documenting the possibility of returning DOMElement causes
the Intelephense linter (a popular PHP linter with ~9 millio

Fix return value in stub file for DOMNodeList::item

Not explicitly documenting the possibility of returning DOMElement causes
the Intelephense linter (a popular PHP linter with ~9 million downloads:
https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client)
to think this code is bad:

$xp->query("whatever")->item(0)->getAttribute("foo");

DOMNode does not have getAttribute (while DOMElement does).
Documenting the DOMElement return type should fix Intelephense's linter.

Closes GH-11342.

show more ...


# e1967ca9 25-Feb-2023 othercorey

Change DOMCharacterData::appendData return type to true (#10690)


Revision tags: php-8.2.0RC1, php-8.1.10, php-8.0.23, php-8.0.23RC1, php-8.1.10RC1, php-8.2.0beta3, php-8.2.0beta2, php-8.1.9, php-8.0.22, php-8.1.9RC1, php-8.2.0beta1
# e328c683 19-Jul-2022 Máté Kocsis

Rename @cname to @cvalue in stubs (#9043)

@cname currently refers to the constant name in C. However, it is not always a (constant) name, but sometimes a function invocation, so naming it as

Rename @cname to @cvalue in stubs (#9043)

@cname currently refers to the constant name in C. However, it is not always a (constant) name, but sometimes a function invocation, so naming it as @cvalue would be more appropriate.

show more ...

Revision tags: php-8.0.22RC1, php-8.0.21, php-8.1.8, php-8.2.0alpha3, php-8.1.8RC1, php-8.2.0alpha2, php-8.0.21RC1, php-8.0.20, php-8.1.7, php-8.2.0alpha1, php-7.4.30
# 9c446a93 01-Jun-2022 Máté Kocsis

Declare ext/dom constants in stubs (#8676)

# 84cd2a90 25-May-2022 Máté Kocsis

Add some stub related todo comments

Revision tags: php-8.1.7RC1, php-8.0.20RC1, php-8.1.6, php-8.0.19, php-8.1.6RC1, php-8.0.19RC1, php-8.0.18, php-8.1.5, php-7.4.29, php-8.1.5RC1, php-8.0.18RC1, php-8.1.4, php-8.0.17, php-8.1.4RC1, php-8.0.17RC1, php-8.1.3, php-8.0.16, php-7.4.28, php-8.1.3RC1, php-8.0.16RC1, php-8.1.2, php-8.0.15, php-8.1.2RC1, php-8.0.15RC1, php-8.0.14, php-8.1.1, php-7.4.27, php-8.1.1RC1, php-8.0.14RC1, php-7.4.27RC1, php-8.1.0, php-8.0.13, php-7.4.26, php-7.3.33, php-8.1.0RC6, php-7.4.26RC1, php-8.0.13RC1, php-8.1.0RC5, php-7.3.32, php-7.4.25, php-8.0.12, php-8.1.0RC4, php-8.0.12RC1, php-7.4.25RC1, php-8.1.0RC3, php-8.0.11, php-7.4.24, php-7.3.31, php-8.1.0RC2
# 8168d312 08-Sep-2021 Máté Kocsis

Fix a few more classsynopsis generation issues

Closes GH-7480

Revision tags: php-7.4.24RC1, php-8.0.11RC1, php-8.1.0RC1
# 25cbd084 26-Aug-2021 Máté Kocsis

Make a few unuseful DOMEntity properties readonly (#7406)

# cdf2f3eb 25-Aug-2021 Máté Kocsis

DOMCharacterData::$data and DOMAttr::$value are writable

Revision tags: php-7.4.23, php-8.0.10, php-7.3.30, php-8.1.0beta3
# ca94d55a 10-Aug-2021 Nikita Popov

Mark DOM classes as not serializable

Revision tags: php-8.0.10RC1, php-7.4.23RC1
# da2cd931 05-Aug-2021 Máté Kocsis

Fix another DOMNameSpaceNode casing issue

Revision tags: php-8.1.0beta2, php-8.0.9, php-7.4.22
# 239446c5 21-Jul-2021 Nikita Popov

Merge branch 'PHP-8.0'

* PHP-8.0:
dom_import_simplexml() cannot return null


# a0893865 21-Jul-2021 Nikita Popov

dom_import_simplexml() cannot return null

# 1602db2d 21-Jul-2021 Nikita Popov

Fix return type of DOMNodeList::item()

It can also return DOMNameSpaceNode :(

Revision tags: php-8.1.0beta1
# d9838e54 20-Jul-2021 Máté Kocsis

Declare tentative return types for ext/dom (#6985)

Revision tags: php-7.4.22RC1, php-8.0.9RC1, php-8.1.0alpha3, php-7.4.21, php-7.3.29, php-8.0.8, php-8.1.0alpha2, php-7.4.21RC1, php-8.0.8RC1, php-8.1.0alpha1, php-8.0.7, php-7.4.20
# c2a58ab0 26-May-2021 Nikita Popov

Throw DomException for DOM out-of-memory error conditions

A number of error conditions in DOM can only occur if libxml2 runs
out of memory, at least as far as I can see. In such cases we

Throw DomException for DOM out-of-memory error conditions

A number of error conditions in DOM can only occur if libxml2 runs
out of memory, at least as far as I can see. In such cases we
currently do a silent "return false", which violates the DOM spec,
and which code is very unlikely to handle sensibly.

Switch these to throw a DomException with INVALID_STATE_ERR type.
This error type is chosen because we use for similar checks
elsewhere, for example:
https://github.com/php/php-src/blob/a733b1ada7895f6fa5e349755a878cae9189e3f5/ext/dom/documentfragment.c#L45-L48

This changes some of the more obvious cases I spotted, but there are probably more.

Closes GH-7049.

show more ...

# b9893c2a 16-Jul-2021 Nikita Popov

Actually add the tentative type marker...

# cad6144d 16-Jul-2021 Nikita Popov

Add minimial tentative types to dom

Just for implementations of Countable. These (no longer) suffer
from an overly broad return type.

# 4cf0269e 16-Jul-2021 Nikita Popov

DOMNamedNodeMap::count() cannot return false

# f089e8af 16-Jul-2021 Nikita Popov

DOMNodeList::count() cannot return false

Refactor the implementation to make this obvious, and make use
of early returns.

Revision tags: php-8.0.7RC1
# 7da2151f 19-May-2021 Máté Kocsis

Declare typed properties in ext/dom

Closes GH-7013

Revision tags: php-7.4.20RC1, php-8.0.6, php-7.4.19, php-7.4.18, php-7.3.28, php-8.0.5, php-8.0.5RC1, php-7.4.18RC1, php-8.0.4RC1, php-7.4.17RC1, php-8.0.3, php-7.4.16, php-8.0.3RC1, php-7.4.16RC1, php-8.0.2, php-7.4.15, php-7.3.27
# a5e938dc 26-Jan-2021 Máté Kocsis

Declare dynamic properties in ext/dom

Closes GH-6644

123