KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I cannot understand why this fails. Does a DOMElement need to be part of a Document? $domEl = new DOMElement("Item"); $domEl->setAttribute('Something','bla'); Throws exception > Uncaught exception 'DOMException' with message 'No Modification Allowed Error'; I would have thought I could just create a DOMElement and it would be mutable.
Tags (comma-separated)
Save Edits
Cancel