File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -659,27 +659,8 @@ another given base URI::
659
659
UriResolver::resolve('?a=b', 'http://localhost/bar#foo'); // http://localhost/bar?a=b
660
660
UriResolver::resolve('../../', 'http://localhost/'); // http://localhost/
661
661
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
-
679
662
Learn more
680
663
----------
681
664
682
665
* :doc: `/testing `
683
666
* :doc: `/components/css_selector `
684
-
685
- .. _`masterminds/html5` : https://packagist.org/packages/masterminds/html5
You can’t perform that action at this time.
0 commit comments