File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -74,10 +74,13 @@ tree.
74
74
75
75
.. note ::
76
76
77
- When available, the DomCrawler will use the
78
- [html5-php library](https://github.com/Masterminds/html5-php) to parse HTML content.
79
- If you need to support specific HTML5 tags ou if you are getting unexpected behaviors
80
- using the DomCrawler, you can install the library to fix the problem.
77
+ If you need better support for HTML5 contents or want to get rid of the
78
+ inconsistencies of PHP's DOM extension, install the `html5-php library `_.
79
+ The DomCrawler component uses it automatically when available.
80
+
81
+ .. versionadded :: 4.3
82
+
83
+ The automatic support of the html5-php library was introduced in Symfony 4.3.
81
84
82
85
Node Filtering
83
86
~~~~~~~~~~~~~~
@@ -580,11 +583,12 @@ the whole form or specific field(s)::
580
583
$form->disableValidation();
581
584
$form['country']->select('Invalid value');
582
585
583
- .. _`Goutte` : https://github.com/FriendsOfPHP/Goutte
584
- .. _Packagist : https://packagist.org/packages/symfony/dom-crawler
585
-
586
586
Learn more
587
587
----------
588
588
589
589
* :doc: `/testing `
590
590
* :doc: `/components/css_selector `
591
+
592
+ .. _`Goutte` : https://github.com/FriendsOfPHP/Goutte
593
+ .. _Packagist : https://packagist.org/packages/symfony/dom-crawler
594
+ .. _`html5-php library` : https://github.com/Masterminds/html5-php
You can’t perform that action at this time.
0 commit comments