@@ -165,14 +165,13 @@ Namespaces can be explicitly registered with the
165165 $crawler->registerNamespace('m', 'http://search.yahoo.com/mrss/');
166166 $crawler = $crawler->filterXPath('//m:group//yt:aspectRatio');
167167
168- .. versionadded :: 4.4
169-
170- The ``matches() `` method was introduced in Symfony 4.4.
171-
172168Verify if the current node matches a selector::
173169
174170 $crawler->matches('p.lorem');
175171
172+ .. versionadded :: 4.4
173+
174+ The ``matches() `` method was introduced in Symfony 4.4.
176175
177176Node Traversing
178177~~~~~~~~~~~~~~~
@@ -204,14 +203,14 @@ Get all the direct child nodes matching a CSS selector::
204203
205204 $crawler->filter('body')->children('p.lorem');
206205
207- .. versionadded :: 4.4
208-
209- The ``closest() `` method was introduced in Symfony 4.4.
210-
211206Get the first parents (heading toward the document root) of the Element that matches the provided selector::
212207
213208 $crawler->closest('p.lorem');
214209
210+ .. versionadded :: 4.4
211+
212+ The ``closest() `` method was introduced in Symfony 4.4.
213+
215214.. note ::
216215
217216 All the traversal methods return a new :class: `Symfony\\ Component\\ DomCrawler\\ Crawler `
@@ -350,6 +349,8 @@ and :phpclass:`DOMNode` objects::
350349 // avoid the exception passing an argument that html() returns when node does not exist
351350 $html = $crawler->html('Default <strong>HTML</strong> content');
352351
352+ $html = $crawler->outerHtml();
353+
353354 .. versionadded :: 4.3
354355
355356 The default argument of ``html() `` was introduced in Symfony 4.3.
@@ -358,7 +359,6 @@ and :phpclass:`DOMNode` objects::
358359
359360 The ``outerHtml() `` method was introduced in Symfony 4.4.
360361
361- $html = $crawler->outerHtml();
362362
363363
364364Expression Evaluation
0 commit comments