-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[DomCrawler] Add DomCrawler to leverage PHP 8.4's HTML5-compliant DOM parser
#61356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,11 @@ Console | |
|
|
||
| * Deprecate `Symfony\Component\Console\Application::add()` in favor of `addCommand()` | ||
|
|
||
| BrowserKit | ||
| ---------- | ||
|
|
||
| * Leverage the native HTML5 parser when using PHP 8.4+ | ||
|
|
||
| DependencyInjection | ||
| ------------------- | ||
|
|
||
|
|
@@ -29,6 +34,16 @@ DoctrineBridge | |
|
|
||
| * Deprecate `UniqueEntity::getRequiredOptions()` and `UniqueEntity::getDefaultOption()` | ||
|
|
||
| DomCrawler | ||
| ---------- | ||
|
|
||
| * [BC BREAK] Type widening on public and protected methods/properties to support both | ||
| `Dom\*` and `DOM*` native classes for: | ||
| * properties `FormField::$document`, `$xpath`, `$node` and method `getLabel()` | ||
| * methods `Form::getFormNode()` and `addField()` | ||
| * property `AbstractUriElement::$node`, and methods `getNode()` and `setNode()` | ||
| * methods `Crawler::add()`, `addDocument()`, `addNodeList()`, `addNode()`, `getNode()` and `sibling()` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. type widening for
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. And this is not just theoretical. https://github.com/minkphp/MinkBrowserKitDriver will be totally broken by this BC break affecting consumers of the library (and immediately because of the BC break in BrowserKit switching to the BC-breaking implementation) |
||
|
|
||
| FrameworkBundle | ||
| --------------- | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a BC break for code interacting with DomCrawler methods returning a raw node as the type has changed. this should be documented as such.