Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c8a76e3

Browse filesBrowse files
committed
minor #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
Copy full SHA for c8a76e3

File tree

Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-9
lines changed
Open diff view settings
Collapse file

‎components/dom_crawler.rst‎

Copy file name to clipboardExpand all lines: components/dom_crawler.rst
-9Lines changed: 0 additions & 9 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.