Skip to content

Commit b0a2214

Browse files
committed
minor #21303 [DomCrawler] Remove useless note about useHtml5Parser argument (nicolas-grekas)
This PR was merged into the 6.4 branch. Discussion ---------- [DomCrawler] Remove useless note about useHtml5Parser argument useHtml5Parser defaults to true, so that this note is misleading and needless. We're going to remove this argument in Symfony 8 anyway. Commits ------- 5c670e7 [DomCrawler] Remove useless note about useHtml5Parser argument
2 parents 0ece75d + 5c670e7 commit b0a2214

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

components/dom_crawler.rst

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -659,27 +659,8 @@ another given base URI::
659659
UriResolver::resolve('?a=b', 'http://localhost/bar#foo'); // http://localhost/bar?a=b
660660
UriResolver::resolve('../../', 'http://localhost/'); // http://localhost/
661661

662-
Using a HTML5 Parser
663-
~~~~~~~~~~~~~~~~~~~~
664-
665-
If you need the :class:`Symfony\\Component\\DomCrawler\\Crawler` to use an HTML5
666-
parser, set its ``useHtml5Parser`` constructor argument to ``true``::
667-
668-
use Symfony\Component\DomCrawler\Crawler;
669-
670-
$crawler = new Crawler(null, $uri, useHtml5Parser: true);
671-
672-
By doing so, the crawler will use the HTML5 parser provided by the `masterminds/html5`_
673-
library to parse the documents.
674-
675-
.. versionadded:: 6.3
676-
677-
The ``useHtml5Parser`` argument was introduced in Symfony 6.3.
678-
679662
Learn more
680663
----------
681664

682665
* :doc:`/testing`
683666
* :doc:`/components/css_selector`
684-
685-
.. _`masterminds/html5`: https://packagist.org/packages/masterminds/html5

0 commit comments

Comments
 (0)