Skip to content
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

Added getNodes() #20

Open
wants to merge 19 commits into
base: master
Choose a base branch
from
Open

Added getNodes() #20

wants to merge 19 commits into from

Commits on Feb 27, 2017

  1. Update HtmlPageCrawler.php

    Replace `_root` by constant `self::FRAGMENT_ROOT_TAGNAME`
    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    8da1018 View commit details
    Browse the repository at this point in the history
  2. Update HtmlPageCrawler.php

    Try to fix utf-8 encoding problem.
    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    332ffcc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    478d576 View commit details
    Browse the repository at this point in the history
  4. Fixes UTF-8 encoding problem.

    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    02d7a6f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    7bf5088 View commit details
    Browse the repository at this point in the history
  6. Use parent method instead.

    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    5c33cbe View commit details
    Browse the repository at this point in the history
  7. Correct some tests

    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    94a2c3c View commit details
    Browse the repository at this point in the history
  8. Correct some tests.

    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    7d90051 View commit details
    Browse the repository at this point in the history
  9. Output DocType if exists

    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    50ab050 View commit details
    Browse the repository at this point in the history
  10. trim every node in saveHTML

    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    d086de6 View commit details
    Browse the repository at this point in the history
  11. Adding php 7.1

    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    84005f3 View commit details
    Browse the repository at this point in the history
  12. Fixes DocType

    Don't output DocType if only `saveHTML` of elements.
    shtse8 committed Feb 27, 2017
    Configuration menu
    Copy the full SHA
    a7dfad2 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2017

  1. Changes Commet

    shtse8 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    c432215 View commit details
    Browse the repository at this point in the history
  2. Bug Fixes

    shtse8 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    c2975e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    acfa3de View commit details
    Browse the repository at this point in the history
  4. Fix Typo mistake

    shtse8 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    1ea1920 View commit details
    Browse the repository at this point in the history
  5. using rtrim instead of trim

    shtse8 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    abbcc39 View commit details
    Browse the repository at this point in the history
  6. Cancel trimming on elements

    I think we should keep the newline and whitespace.
    shtse8 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    2b20848 View commit details
    Browse the repository at this point in the history
  7. Added getNodes()

    Syntax:
    ```
    use \Wa72\HtmlPageDom\HtmlPageCrawler;
    
    $c = new HtmlPageCrawler('<p>Paragraph 1</p> <p>Paragraph 2</p><p>Paragraph 3</p>');
    foreach($c->filter('p')->getNodes() as $element) {
    	$element->html('hi');
    }
    echo $c->saveHTML();
    ```
    shtse8 committed Feb 28, 2017
    Configuration menu
    Copy the full SHA
    bae2302 View commit details
    Browse the repository at this point in the history