Skip to content

Commit a370d63

Browse files
committed
minor #15212 [DomCrawler] Clarify the ways to add contents (javiereguiluz)
This PR was squashed before being merged into the 4.4 branch. Discussion ---------- [DomCrawler] Clarify the ways to add contents Fixes #15046. Commits ------- 12b0cfc [DomCrawler] Clarify the ways to add contents
2 parents d7cd12b + 12b0cfc commit a370d63

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/dom_crawler.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,9 @@ context of the crawler::
292292
Adding the Content
293293
~~~~~~~~~~~~~~~~~~
294294

295-
The crawler supports multiple ways of adding the content::
295+
The crawler supports multiple ways of adding the content, but they are mutually
296+
exclusive, so you can only use one of them to add content (e.g. if you pass the
297+
content to the ``Crawler`` constructor, you can't call ``addContent()`` later)::
296298

297299
$crawler = new Crawler('<html><body/></html>');
298300

0 commit comments

Comments
 (0)