This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
LS test entities08 checks to see that entity references are preserved upon serialization when entities is true. However when the document (that is later serialized) is initially loaded, entity reference nodes are being expanded. By setting the 'expandEntityReferences' implementationAttribute to 'false', this problem can be solved. Patch to LS test entities08.xml: + <implementationAttribute name="expandEntityReferences" value="false"/> <var name="doc" type="Document"/> <var name="domConfig" type="DOMConfiguration"/> <var name="domImplLS" type="DOMImplementationLS"/> <var name="lsSerializer" type="LSSerializer"/> <var name="output" type="DOMString"/> <implementation var="domImplLS"/> <load var="doc" href="hc_staff" willBeModified="true"/>
The observation is valid, the test will fail as written if entity references are expanded on load. I've taken another tack and modified the code so that it adds an entity reference after load if there isn't one in the test. Otherwise, a hypothetical implementation that supported L3 L&S but didn't support toggling entity expansion through the framework would still have a test for this behavior.
Created attachment 359 [details] Now adds an entity reference if expected one is not in document
Created attachment 360 [details] Patch that should have been attached to bug 673