Skip to content

[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

Merged
merged 1 commit into from
Aug 28, 2019

Conversation

lyrixx
Copy link
Member

@lyrixx lyrixx commented Aug 22, 2019

fixes #12223

@@ -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();
Copy link
Contributor

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 thehtml()` versionadded.

To be clear regarding the order:

  • html() code example
  • html() versionadded directive
  • outherHtml() introduction/description
  • outherHtml() code example
  • outherHtml() versionadded directive

Thanks.

Copy link
Member Author

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 ?

@OskarStark OskarStark added this to the 4.4 milestone Aug 28, 2019
@lyrixx lyrixx force-pushed the crawler-new-methods branch from 7749d72 to 35518f1 Compare August 28, 2019 09:31
@lyrixx lyrixx force-pushed the crawler-new-methods branch from 35518f1 to a8599cf Compare August 28, 2019 09:33
Copy link
Contributor

@OskarStark OskarStark left a 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! 👍

@OskarStark
Copy link
Contributor

Thanks for your work on this new feature!

OskarStark added a commit that referenced this pull request Aug 28, 2019
…outerHtml() (lyrixx)

This PR was merged into the 4.4 branch.

Discussion
----------

[DomCrawler] Added Crawler::matches(), ::closest(), ::outerHtml()

fixes #12223

Commits
-------

a8599cf [DomCrawler] Added Crawler::matches(), ::closest(), ::outerHtml()
@OskarStark OskarStark merged commit a8599cf into symfony:4.4 Aug 28, 2019
OskarStark added a commit to OskarStark/symfony-docs that referenced this pull request Aug 28, 2019
@lyrixx lyrixx deleted the crawler-new-methods branch August 28, 2019 12:37
xabbuh added a commit that referenced this pull request Aug 30, 2019
OskarStark added a commit that referenced this pull request Sep 2, 2019
* 4.4:
  Remove duplicated !!set tag
  [#12225] fix a small typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants