W3C home > Mailing lists > Public > public-html@w3.org > January 2010

INVALID_STATE_ERR or INVALID_ACCESS_ERR when attempting to write into XML documents

From: Adrian Bateman <adrianba@microsoft.com>
Date: Thu, 21 Jan 2010 18:27:35 +0000
To: HTML WG <public-html@w3.org>
CC: Tony Ross <tross@microsoft.com>
Message-ID: <104E6B5B6535E849970CDFBB1C5216EB1D0A31E5@TK5EX14MBXC140.redmond.corp.microsoft.com>
While reviewing the spec, we found the following apparent inconsistency and we'd like to understand the reasons for this:

In section 3.5.1/3.5.2 [1], Opening the input stream and Closing the input stream, the spec says to throw INVALID_STATE_ERR if the Document is an XML document.

In section 3.5.3/3.5.4, document.write and document.writeln, the spec says to throw INVALID_ACCESS_ERR if invoked on XML documents.

Is there a reason why these are different exceptions?

Many thanks,


[1] http://dev.w3.org/html5/spec/Overview.html#opening-the-input-stream
Received on Thursday, 21 January 2010 18:29:51 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:08 UTC