Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DomCrawler] Document XPath expression evaluation#7033

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
wouterj merged 1 commit intosymfony:masterfromjakzal:domcrawler-evaluate
Nov 10, 2016
Merged

[DomCrawler] Document XPath expression evaluation#7033

wouterj merged 1 commit intosymfony:masterfromjakzal:domcrawler-evaluate
Nov 10, 2016

Conversation

@jakzal
Copy link
Contributor

Copy link
Member

@javiereguiluzjaviereguiluz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍


The ``evaluate()`` method evaluates the given XPath expression.
The return value depends if the expression operates on simple values
(like html attributes), or returns a subset of the current document.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

html attributes ->HTML attributes

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Fixed.

Copy link
Contributor

@mickaelandrieumickaelandrieu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Clear and complete ! Thank you :)


$html = $crawler->html();

Expression evaluation
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Evaluation

~~~~~~~~~~~~~~~~~~~~~

The ``evaluate()`` method evaluates the given XPath expression.
The return value depends if the expression operates on simple values
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

depends on?


The ``evaluate()`` method evaluates the given XPath expression.
The return value depends on if the expression operates on simple values
(like HTML attributes), or returns a subset of the current document.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

"[...] if the expression operates on simple values (like HTML attributes) or a subset of the current document." ?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Much better!


This behavior is best illustrated with examples:

..code-block::php
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

please transform these 3 lines toThis behaviour is best illustrated with examples::

@wouterj
Copy link
Member

👍
status: reviewed

@wouterjwouterj added this to the3.2 milestoneNov 9, 2016
@wouterjwouterj merged commit156b047 intosymfony:masterNov 10, 2016
wouterj added a commit that referenced this pull requestNov 10, 2016
This PR was merged into the master branch.Discussion----------[DomCrawler] Document XPath expression evaluationDocumentssymfony/symfony#19430Commits-------156b047 [DomCrawler] Document XPath expression evaluation
@wouterj
Copy link
Member

Thanks@jakzal! I've done some rewrites while merging in67706f6 to remove some duplication in this paragraph.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@wouterjwouterjwouterj left review comments

@xabbuhxabbuhxabbuh left review comments

@javiereguiluzjaviereguiluzjaviereguiluz approved these changes

+1 more reviewer

@mickaelandrieumickaelandrieumickaelandrieu approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

3.2

Development

Successfully merging this pull request may close these issues.

6 participants

@jakzal@wouterj@javiereguiluz@mickaelandrieu@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp