Skip to content

Commit c8a76e3

Browse files
committed
minor symfony#6536 [DomCrawler] Removed references to CssSelector (aerialls)
This PR was merged into the 2.8 branch. Discussion ---------- [DomCrawler] Removed references to CssSelector The CssSelector class does not exists since 2.8. The behavior is now automatic if the content is an XML file. Commits ------- 50a8777 [DomCrawler] Removed references to CssSelector
2 parents c375b2f + 50a8777 commit c8a76e3

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

components/dom_crawler.rst

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,6 @@ aliases both with :method:`Symfony\\Component\\DomCrawler\\Crawler::filterXPath`
129129

130130
and :method:`Symfony\\Component\\DomCrawler\\Crawler::filter`::
131131

132-
use Symfony\Component\CssSelector\CssSelector;
133-
134-
CssSelector::disableHtmlExtension();
135132
$crawler = $crawler->filter('default|entry media|group yt|aspectRatio');
136133

137134
.. note::
@@ -150,12 +147,6 @@ Namespaces can be explicitly registered with the
150147
$crawler->registerNamespace('m', 'http://search.yahoo.com/mrss/');
151148
$crawler = $crawler->filterXPath('//m:group//yt:aspectRatio');
152149

153-
.. caution::
154-
155-
To query XML with a CSS selector, the HTML extension needs to be disabled with
156-
:method:`CssSelector::disableHtmlExtension <Symfony\\Component\\CssSelector\\CssSelector::disableHtmlExtension>`
157-
to avoid converting the selector to lowercase.
158-
159150
Node Traversing
160151
~~~~~~~~~~~~~~~
161152

0 commit comments

Comments
 (0)