Closed cmoeke closed 3 years ago
This was actually a bug in the library (insertHTML() does not throw an error). There should not be such errors when modifying elements too. It's now fixed in v2.2.8. Thank you for reporting it.
Thanks for fixing it so fast!
When i try to change the innerHTML of an HTML5DOMElement i get the Exception: "A DOM node with an ID value "1" already exists! Pass the HTML5DOMDocument::ALLOW_DUPLICATE_IDS option to disable this check."
Example:
The problem is that
\IvoPetkov\HTML5DOMDocument::ALLOW_DUPLICATE_IDS
isn't passed toat HTML5DOMElement.php Line 100 and HTML5DOMElement.php Line 111.
Any ideas to solve this problem? Imho the best option would be to add an setter for innerHTML and outerHTML to pass the options.