You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
New DOM API:XmlLoader::loadXml() now returns Dom\XMLDocument and XmlLoader::loadHtml() returns Dom\HTMLDocument, previously both returned DOMDocument (#36)
HTML5 parser:loadHtml() now uses the spec-compliant HTML5 parser of Dom\HTMLDocument, the parse tree can differ from the legacy libxml2 parser for malformed markup (#36)
Migration:
Replace DOMDocument type-hints of loader results with Dom\XMLDocument / Dom\HTMLDocument
Check your DOM traversal code against the new DOM API, some legacy methods behave differently or are not available
Verify HTML parsing of malformed markup, the HTML5 parser can produce a different tree
Improvements:
XmlException::__construct() now accepts a $previous throwable (#36)