Skip to content

v3.2.0

Choose a tag to compare

@tomas-novotny tomas-novotny released this 04 Nov 13:15

Changed

  • Skip \DOMNameSpaceNode in Node::xpath method
  • Threw \DOMException instead of \ValueError for empty Document::validate and Document::save filename and DocumentFactory::createForContent content
  • Queried Document::xpath directly instead of a serialized copy of the document
  • Copied Node::xpath results as DOM nodes, so they keep CDATA sections, mixed content and attribute or text node types

Fixed

  • Fixed Node::xpath on a node returned by Node::xpath of a namespaced document
  • Fixed Node::xpath for text() expressions
  • Fixed .gitattributes export-ignore paths so phpcs.xml and phpstan.neon are not shipped in the package