Re: document.load: History and a proposal

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%.  ;)

-Boris

Received on Sunday, 28 March 2010 18:09:43 UTC