Skip to content

Commit 3053d8b

Browse files
authored
Update README.md
1 parent f5e1714 commit 3053d8b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
# DOMDocument
22
An extension of PHP's DOMDocument library. This library implements many common jQuery functions, adds support for HTML5, CSS selectors, method chaining and performing operations on sets of matched results.
33

4+
## IMPORTANT NOTICE - The future of this library
5+
With the release of PHP 8.4's [new DOM features](https://www.php.net/manual/en/migration84.new-features.php#migration84.new-features.dom), the core features of this package are now supported natively, that is, HTML5 and CSS selectors.
6+
7+
Whilst this library is still compatible, if there are any future versions then I will be handing over this functionality to PHP's new DOM classes.
8+
9+
I have experimented with the new version and as far as I can tell there is now no means to register our own classes as extensions of the built in node class. The `HTMLDocument` is `final` and I cannot see any documented way to register node classes. With that said, the documentation hasn't been updated yet, neither has Intelephense seemingly.
10+
11+
I will wait until the documentation has been updated and then decide whether this package will be deprecated or not. I may also take this library in a different direction such as providing a single jQuery like function to manipulate documents without touching or extending the built in implementation.
12+
13+
Please watch this space!
14+
415
## Requirements
516
- PHP >= 8.2.0
617
- Composer
@@ -76,4 +87,4 @@ If the target set contains only one element, then the same elements passed into
7687
If the target set contains multiple elements, then the input elements will be cloned - please note that manipulating the input set after performing these operations may not affect the DOM tree, because the new content is cloned from the input set.
7788

7889
## Support
79-
Please feel free to open issues here or submit pull requests.
90+
Please feel free to open issues here or submit pull requests.

0 commit comments

Comments
 (0)