All Notable changes to ElementFinder will be documented in this file
- Minimum required php version is now php 8.2
- Move to php 8.1
- Add
ExpressionTranslator(merged from the xparse/expression-translator repository) - Add
CssExpressionTranslator(merged from the xparse/css-expression-translator repository) - Constants ElementFinder::DOCUMENT_HTML, ElementFinder::DOCUMENT_XML marked as final
- Move xparse/expression-translator to 1.0.0
- No breaking changes.
- Move to php 7.3
- Add php 8.0 support
- Allow pass empty string to constructor
ElementFinder
- Use
ElementFinderInterfaceinstead ofElementFinderclass - Move to php 7.1
- Remove ElementFinder\ElementFinderModifierInterface see DomNodeListAction\DomNodeListActionInterface
- Remove ElementFinder\RemoveElements see DomNodeListAction\RemoveNodes
- Remove deprecated class RegexHelper
- Specify types
- Add final modifiers for all public methods
- Add new method:
ElementFinder::modify.
- #84
ElementFinderbecome immutable - #84 method
ElementFinder::removereturnnew ElementFinder() - #84 method
ElementFinder::elementreturn copy of the element - Make second argument required
\Xparse\ElementFinder\Collection\StringCollection::replace - #87 Remove exceptions from the constructor
ElementCollection,StringCollection,ObjectCollection
- #95 deprecate internal method
\Xparse\ElementFinder\Helper\RegexHelper::match
- #86 Remove deprecated method
\Xparse\ElementFinder\ElementFinder::match - #86 Remove deprecated method
\Xparse\ElementFinder\ElementFinder::__toString - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\StringCollection::getLast - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\StringCollection::getFirst - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\StringCollection::getItems - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\StringCollection::walk - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ObjectCollection::getLast - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ObjectCollection::getFirst - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ObjectCollection::getItems - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ObjectCollection::walk - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ElementCollection::getLast - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ElementCollection::getFirst - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ElementCollection::getItems - #86 Remove deprecated method
\Xparse\ElementFinder\Collection\ElementCollection::walk - #86 Remove deprecated method ``
- #98 Deprecate
ElementCollection::walk - #98 Deprecate
StringCollection::walk - #98 Deprecate
ObjectCollection::walk - #100 Deprecate
ElementCollection::getItemsseeElementCollection::all - #100 Deprecate
StringCollection::getItemsseeStringCollection::all - #100 Deprecate
ObjectCollection::getItemsseeObjectCollection::all - #99 Deprecate
ElementCollection::getFirstseeElementCollection::first - #99 Deprecate
StringCollection::getFirstseeStringCollection::first - #99 Deprecate
ObjectCollection::getFirstseeObjectCollection::first - #99 Deprecate
ElementCollection::getLastseeElementCollection::last - #99 Deprecate
StringCollection::getLastseeStringCollection::last - #99 Deprecate
ObjectCollection::getLastseeObjectCollection::last
- #92 Require second parameter
StringCollection::replace - #93 All public methods become final.
- #94 All protected methods become private
- #85 Deprecate
ElementFinder::match - #88 Deprecate
ElementFinder::__toString
- #82 Remove method
ElementCollection::getAttributes - #82 Remove method
ElementFinder::setExpressionTranslator() - #82 Remove method
ElementFinder::getExpressionTranslator() - #82 Remove method
ObjectCollection::append() - #82 Remove method
ElementFinder::replace() - #82 Remove method
ElementFinder::getType() - #82 Remove method
ElementFinder::getOptions() - #83 Remove method
ElementFinder::query
- #81 Introduce new map method
StringCollection::map(). - #48 Introduce new filter method
StringCollection::filter. - #72 Add 3 argument to the
ElementFinder::__construct. Now you can passExpressionTranslatorInterface
- #75 Remove
optionsparameter from theElementFinder::__construct
- #80 Deprecate
ElementCollection::getAttributes - #72 Deprecate
ElementFinder::setExpressionTranslator() - #72 Deprecate
ElementFinder::getExpressionTranslator() - #66 Deprecate
ObjectCollection::append() - #70 Deprecate
ElementFinder::replace() - #77 Deprecate
ElementFinder::getType() - #74 Deprecate
ElementFinder::getOptions()
- #62
FormHelperreturn value attribute in select elements.
- #58 Fire error if we try to store non string values inside
StringCollection - #57 Deprecate method
ElementFinder::nodeuseElementFinder::elementinstead
- #75 Method
ElementFinder::node - #53 Remove
ArrayAccessinterface from theStringCollection,ObjectCollectionandElementCollection - #52 RegexReplace
IteratorwithIteratorAggregateinterface insideStringCollection,ObjectCollectionandElementCollection - #55 Remove (
StringCollection::prepend,StringCollection::addAfter,StringCollection::slice,StringCollection::extractItems,StringCollection::getNext,StringCollection::getPrevious,StringCollection::append,StringCollection::setItems) - #55 Remove (
ObjectCollection::prepend,ObjectCollection::addAfter,ObjectCollection::slice,ObjectCollection::extractItems,ObjectCollection::getNext,ObjectCollection::getPrevious,ObjectCollection::append,ObjectCollection::setItems) - #55 Remove (
ElementCollection::prepend,ElementCollection::addAfter,ElementCollection::slice,ElementCollection::extractItems,ElementCollection::getNext,ElementCollection::getPrevious,ElementCollection::append,ElementCollection::setItems) - #51 Remove (
ElementCollection::map,ObjectCollection::map,StringCollection::map) - Remove
StringCollection::itemuseStringCollection::getinstead - Remove
ObjectCollection::itemuseObjectCollection::getinstead - Remove method
FormHelper::getDefaultFormDatauseFormHelper::getFormDatainstead - #59 Remove method
ObjectCollection::replace
- #54 Return new collection instead of modification (
StringCollection::replace,ObjectCollection::replace)
- #50 Add
StringCollection::uniquefunction - #56 Add
StringCollection::merge,ObjectCollection::mergeandElementCollection::mergefunctions - #60 Add
StringCollection::add,StringCollection::getmethods - #60 Add
ObjectCollection::add,ObjectCollection::getmethods - #60 Add
ElementCollection::add,ElementCollection::getmethods
- strict types declaration
- all external collections where moved to appropriate ElementFinder collections
- ArrayAccessible methods in Collections (offsetSet, offsetExists, offsetUnset, offsetGet)
- #49 deprecate
StringCollection::map,ObjectCollection::map,ElementCollection::mapusewalkinstead
- fiv/collection package
- #33 copy expression translator to child objects
- method
ElementFinder::attribute()has been removed - method
ElementFinder::elements()has been removed - method
ElementFinder::getNodeItems()has been removed - method
ElementFinder::html()has been removed - method
NodeHelper::getInnerHtml()has been removed - method
NodeHelper::getOuterHtml()has been removed
- Added
ElementFinder::query()as an alias ofElementFinder::node()
- #18 Skip
XpathExpressioncreation. UseCssExpressiononly when needed.
- #29
ElementFinder::getNodeItems() - #28 Method
ElementFinder::elements()has been renamed toElementFinder::element() - #28 Method
ElementFinder::html()has been renamed toElementFinder::content() - #28 Method
ElementFinder::query()has been renamed toElementFinder::executeQuery() - #28 Method
NodeHelper::getOuterHtml()has been renamed toNodeHelper::getOuterContent() - #28 Method
NodeHelper::getInnerHtml()has been renamed toNodeHelper::getInnerContent() - #10
ElementFinder::attribute(). SeeElementFinder::value() - #14 Remove 3 parameter inside
ElementFinder::KeyValue()
- Feature #4 Use
DOMAttr::nodeValueinstead ofDOMAttr::value - BC #7 Refactor
Helperclass. CreateFormHelper,NodeHelperandStringHelper