v2.0.0
A new major release that better matches the behavior of the native DomDocument related to HTML elements with matching id attributes. DomDocument::loadHTML() throws a warning when loading such HTML code. HTML5DOMDocument::loadHTML() now throws an exception it this case, that can be disabled when providing the HTML5DOMDocument::ALLOW_DUPLICATE_IDS option.
REMOVED:
- Silent duplicate elements removal in loadHTML() and insertHTML().
ADDED:
- HTML5DOMDocument::ALLOW_DUPLICATE_IDS to use in loadHTML() to prevent errors for duplicate elements ids.
- HTML5DOMDocument::modify() to fix and optimize the DOM.
FIXED
- Parsing complex queries.
Big thanks to ygoe and manychois for their feedback and support.