Skip to content

Commit 12b0cfc

Browse files
committed
[DomCrawler] Clarify the ways to add contents
1 parent 0c57c73 commit 12b0cfc

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)