Re: document.load: History and a proposal

On Sun, 28 Mar 2010 15:09:08 -0300, Boris Zbarsky <> 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  
> <> 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
>> to be null, or do you want documentElement
>> to be a 'parsererror' element in the
>> "" namespace like
>> Firefox does (basically a yellow screen of death document).
> See <>.
>> 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 <>.

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