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

RE: INVALID_STATE_ERR or INVALID_ACCESS_ERR when attempting to write into XML documents

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 22 Jan 2010 01:22:12 +0000 (UTC)
To: Adrian Bateman <adrianba@microsoft.com>
Cc: HTML WG <public-html@w3.org>, Tony Ross <tross@microsoft.com>
Message-ID: <Pine.LNX.4.64.1001220121350.3759@ps20323.dreamhostps.com>
On Fri, 22 Jan 2010, Adrian Bateman wrote:
> On Thursday, January 21, 2010 4:58 PM, Ian Hickson wrote:
> > On Thu, 21 Jan 2010, Adrian Bateman wrote:
> > >
> > > 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?
> > 
> > Not really. Would changing the document.write and document.writeln
> > exception to INVALID_STATE_ERR work for you?
> 
> That would be great. We'd prefer them to be consistent and 
> INVALID_STATE_ERR seems like the best choice.

Ok, assume the change is made. I'm in the middle of edits right now so 
can't make the change, but I'll add this e-mail to my pile and will make 
the changes in due course.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 22 January 2010 01:22:40 UTC

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