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

Re: document.load: History and a proposal

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Mon, 29 Mar 2010 17:08:08 -0300
To: "Boris Zbarsky" <bzbarsky@mit.edu>
Cc: public-html@w3.org
Message-ID: <op.vackztug1ejg13@sandra-svwliu01>
On Sun, 28 Mar 2010 15:09:08 -0300, Boris Zbarsky <bzbarsky@mit.edu> wrote:

> On 3/27/10 3:47 PM, Michael A. Puls II wrote:
>> What do you want to happen with load("file not found")? Do you want
>> load() to throw an exception like Firefox
> I assume you were testing with file:// URIs?  See  
> <https://bugzilla.mozilla.org/show_bug.cgi?id=282432> if so.
>> What do you want to happen when load("file is found") is an xml file
>> with a parse error? In the 'load' callback, do you want just
>> event.target.documentElement to be null, or do you want documentElement
>> to be a 'parsererror' element in the
>> "http://www.mozilla.org/newlayout/xml/parsererror.xml" namespace like
>> Firefox does (basically a yellow screen of death document).
> See <https://bugzilla.mozilla.org/show_bug.cgi?id=289714>.
>> Please clarify 'Firefox behavior' in regards to the above. Do you want
>> to copy Firefox exactly 100%?
> As per above, on your first two points _Firefox_ doesn't want to copy  
> Firefox exactly 100%.  ;)

View source of <http://shadow2531.com/opera/testcases/xhr/docload.html>.

That's my partial attempt at making Opera behave like Firefox (minus the 2  
Firefox bugs). It may be useful in some way for deciding the exact  
behavior that is wanted.

Received on Monday, 29 March 2010 21:08:41 UTC

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