Skip to content

Commit 5c670e7

Browse files
[DomCrawler] Remove useless note about useHtml5Parser argument
1 parent 2e76301 commit 5c670e7

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)