DiDOM Versions Save

Simple and fast HTML and XML parser

2.0.1

1 year ago
  • Fix warning PHP Deprecated: mb_convert_encoding(): Handling HTML entities via mbstring is deprecated

2.0

2 years ago

Breaking changes

  • Minimum PHP version bumped to 7.2
  • Remove __invoke method from Document, Element and DocumentFragment that was deprecated early
  • Remove magic property Element::$tag. Use tagName() method instead
  • Rename Element::getDocument() to ownerDocument()

What's new

  • Add Node::setInnerXml() method (i. e. for Element and DocumentFragment too)

1.18

2 years ago
  • Fix a bug when a call of Element::previousSibling() with selector returns a previous sibling when there is not matching element

1.17

2 years ago
  • Add support of multiple pseudoclasses (#125)

1.16.4

2 years ago
  • Handle nested pseudo-classes with expression correctly

1.16.3

3 years ago
  • Fix parsing of a style property in "style" attribute when the value contains a colon

1.16.1

3 years ago
  • Fix deprecation notice in PHP 8 for libxml_disable_entity_loader

1.16

3 years ago
  • Add Node::insertSiblingBefore() and Node::insertSiblingAfter() methods for inserting sibling nodes

1.15

4 years ago
  • Add support of document fragments

1.14.1

5 years ago
  • Fix an exception when selecting comment element with XPath
  • Add support of DOMCdataSection nodes
  • Add methods createTextNode(), createComment(), createCdataSection() to the Document class