Skip to content

[Components][DomCrawler] Bootstrapped the documentation. #980

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 2 commits into from
Jan 22, 2012
Merged

[Components][DomCrawler] Bootstrapped the documentation. #980

merged 2 commits into from
Jan 22, 2012

Conversation

jakzal
Copy link
Contributor

@jakzal jakzal commented Jan 8, 2012

I bootstrapped the DomCrawler documentation with most of the Crawler's features.

Things missing (I will work on them later):

  • forms
  • links

Relates to issue: #961

Usage
-----

The :class:`Symfony\\Component\\DomCrawler\\Crawler` class provides methods to query and manipulate HTML and XML documents.
Copy link
Member

Choose a reason for hiding this comment

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

you need to wrap the lines after the first word crossing 72 characters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Fixed.

Adding the Content
~~~~~~~~~~~~~~~~~~

Crawler supports multiple ways of adding the content:
Copy link
Contributor

Choose a reason for hiding this comment

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

the multiple ways of adding content are not clearly explained, it sounds from the code that it only adds whole content DOMs and not exchange for instance the content within a p tag at a certain position. Could you please provide an example of this? thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Could you give an example of use case you have in mind?

weaverryan added a commit that referenced this pull request Jan 22, 2012
[Components][DomCrawler] Bootstrapped the documentation.
@weaverryan weaverryan merged commit 8a8d24a into symfony:2.0 Jan 22, 2012
@weaverryan
Copy link
Member

Thanks Jakub!

This has been merged in and looks really good. I filled in some details about links and forms at sha: de2ccc4

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants