Elliotte Rusty Harold created XERCESJ-1801:
----------------------------------------------

             Summary: Replacing entity node should fail
                 Key: XERCESJ-1801
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1801
             Project: Xerces2-J
          Issue Type: Bug
          Components: DOM (Level 3 Core)
            Reporter: Elliotte Rusty Harold


see thread on https://github.com/apache/xerces-j/pull/96/changes#r3914030798

According to the DOM Level 3 Core specification, replacing this node is 
strictly expected to fail and raise a NO_MODIFICATION_ALLOWED_ERR. Because 
entities=true is set earlier, the logically adjacent EntityReference node 
(&ent5;) is expanded as read-only. We should likely revert this specific check 
to a try-catch asserting the DOMException, otherwise the test loses its ability 
to enforce the W3C spec compliance here. -> 
https://www.w3.org/TR/DOM-Level-3-Core/core.html#Text3-replaceWholeText



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to