Skip to content

Commit 6954e8d

Browse files
committed
Tweaks
1 parent cfbcb9d commit 6954e8d

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

components/dom_crawler.rst

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,13 @@ tree.
7474

7575
.. note::
7676

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.
8184

8285
Node Filtering
8386
~~~~~~~~~~~~~~
@@ -580,11 +583,12 @@ the whole form or specific field(s)::
580583
$form->disableValidation();
581584
$form['country']->select('Invalid value');
582585

583-
.. _`Goutte`: https://github.com/FriendsOfPHP/Goutte
584-
.. _Packagist: https://packagist.org/packages/symfony/dom-crawler
585-
586586
Learn more
587587
----------
588588

589589
* :doc:`/testing`
590590
* :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

0 commit comments

Comments
 (0)