| Current Path : /var/www/html/school/vendor/wa72/htmlpagedom/ |
| Current File : /var/www/html/school/vendor/wa72/htmlpagedom/CHANGELOG.md |
1.3
===
2016-10-06
- new method `unwrapInner` (thanks to [@ttk](https://github.com/ttk))
- it's now possible to get the number of nodes in the crawler using the
`$crawler->length` property like in Javascript instead of `count($crawler)`
1.2
===
2015-11-06
- new methods `HtmlPage::minify()` and `HtmlPage::indent()` for compressing or nicely indenting the HTML document. These
functions rely on the package `wa72/html-pretty-min` that is *suggested* in composer.json.
1.1
===
2015-05-20
- `text()` function now returns combined text of all elements in set (as jQuery does; previously only the nodeValue of
the first element was returned) and can act as a setter `text($string)` that sets the nodeValue of all elements to
the specified string
- function `hasClass` now returns true if any of the elements in the Crawler has the specified class (previously,
only the first element was checked).
- new function `makeClone` as equivalent to jQuery's `clone` function ("clone" is not a valid function name in PHP).
As previously, you can alternatively use PHP's clone operator: `$r = $c->makeClone()` is the same as `$r = clone $c`,
but the new function allows chaining.
- new function `removeAttr` aliasing `removeAttribute` for compatibility with jQuery
- `appendTo`, `insertBefore`, `insertAfter`, and `replaceAll` now always return a new Crawler object containing
the aggregate set of all elements appended to the target elements (this is the behavior of jQuery 1.9 and newer).
- `attr` function can now act as setter `attr($name, $value)` which is an alias for `setAttribute($name, $value)`
(previously it accepted only one argument and was a getter equivalent to `getAttribute($name)` only, like it is
in parent DomCrawler)
- `attr($name)` and `getAttribute($name)` now always return `null` if the attribute does not exist (previously, an empty
string was returned when used with Symfony 2.3)
1.0
===