[Bug 15447] support for document.write should not be required

https://www.w3.org/Bugs/Public/show_bug.cgi?id=15447

--- Comment #5 from Stijn van Drongelen <self@tinctorius.net> 2012-01-08 15:06:43 UTC ---
Consider my proposal changed as follows:

--

PROPOSAL:

* Allow conforming implementations to drop support for the "Dynamic markup
insertion" API, consisting of document.open(), document.write(),
document.writeln() and document.close().

  - Option 1: the Document interface may lack these methods.
  - Option 2: these methods may raise NotSupportedError exceptions.

* Adjust document.write() to never implicitly call document.open(), but instead
raise an exception when the document was not opened for writing.
* Adjust document.open() to raise an exception when the document is still being
parsed.
* Allow conforming implementations to not block parsing at script elements.

--

As document.open() has no effect while the document is being parsed, the
"Dynamic markup insertion" API will only work when called after the parsing is
complete. The third part of the proposal is only there to ensure this can
actually be debugged: silent errors are the worst errors.

I also suggest to forbid the usage where document.open() is an alias for
window.open().

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Sunday, 8 January 2012 15:06:45 UTC