respecification of document.write in an XML consistent manner yet still compatible with legacy content

Dear WG,

Here is another issue that needs to be introduced here for discussion,  
as it will be added to the issue-tracker in time. This issue was  
discussed surrounding the question of serialization differences and  
the desire to minimize those as much as possible. This proposal  
suggests adding an introspection mechanism to the DOM implementation  
to allow a handler to discover the source where the script is running  
from. Once that property is available, then the document.write method  
can be implemented in XML without interrupting parsing and by passing  
the call onto setInnerHTML(). In this way document.write becomes a  
convenience method making modern DOM calls.

Issue:
UA norm for DOM API to return the element containing the script and a  
re-implementation of document.write for both serializations (or at  
least XML) to use this newly respecified method.[1]


Take care,
Rob

[1]: <http://esw.w3.org/topic/HTML/NewDocument.WriteSpec>

Received on Wednesday, 28 May 2008 21:11:49 UTC