Re: document.load: History and a proposal

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.

-- 
Michael

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