-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[DomCrawler] Added Crawler::matches(), ::closest(), ::outerHtml() #12225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
components/dom_crawler.rst
Outdated
@@ -333,10 +349,18 @@ and :phpclass:`DOMNode` objects:: | |||
// avoid the exception passing an argument that html() returns when node does not exist | |||
$html = $crawler->html('Default <strong>HTML</strong> content'); | |||
|
|||
$html = $crawler->outerHtml(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets move this below the versionadded of html()
method, moving it away from the context makes not so much sense and Introduce the outherHtml()method with a short sentence after the
html()` versionadded.
To be clear regarding the order:
html()
code examplehtml()
versionadded directiveoutherHtml()
introduction/descriptionoutherHtml()
code exampleoutherHtml()
versionadded directive
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok got it 👍 thanks.
Is it better now ?
7749d72
to
35518f1
Compare
35518f1
to
a8599cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, love it ❤️ Thanks! 👍
Thanks for your work on this new feature! |
* 4.4: Remove duplicated !!set tag [#12225] fix a small typo
fixes #12223