This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In the new tests, at least the following: level3/core/documentnormalizedocument03 level3/core/documentnormalizedocument04 level3/core/noderemovechild05 level3/core/adoptnode (all tests) Falsely claims the loaded document will not be modified. There are probably *lots* more cases like these I haven't noticed. In my opinion, willBeModified should probably be deprecated. Getting it right even in the face of compliant implementations is proving difficult, and of course a destructively-uncompliant test-implementation could still modify the document even in cases where it is not supposed to. If there are any TS implementations that do cache unmodified documents, they could then give incorrect results in following tests. Or is there another use for this attribute than optimisation?
Created attachment 133 [details] willBeModified changed to true where needed, maybe some mixed bug 425 fixes
willBeModified makes the HTML tests runnable. I believe that most browser will die (not just run slowly) unless some document caching is attempted. I have modified the Java production of <load/> and the backing classes to enable detection of modifications to documents that were loaded with willBeModified="false". The DOM L1 Core tests had no violations, but the L2 Core and L3 Core tests had many. To enable this checking, you need to uncomment out some lines in org.w3c.domts.DOMTest (otherwise it would require the org.w3.dom.Events package to be in the classpath). If there are any remaining inconsistencies, they are either in tests that Xerces-J fails or in tests that expect an exception on the first mutation. Bugzilla was unavailable while I was working on this, so there are some intermixed removal of unnecessary implementationAttributes (bug 425) mixed in the patch.
Created attachment 134 [details] Support for mutation detection (bug 412), reqs removing comments from DOMTest.java
Created attachment 135 [details] Transform change to support mutation detection