pombreda / base2

Automatically exported from code.google.com/p/base2
0 stars 0 forks source link

[2.0 alpha] IE8 throws errors during the page loading process (emulated DOMContentLoaded code) #129

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. IE8 using the CSS Selectors Tests I sent you
2. base2+dom.js you provided (size 65886)
3. change selected item in select box to base2

What is the expected output? What do you see instead?

expecting page load and executing code... instead this error is displayed:

   "The data necessary to complete this operation is not yet available."

further processing is aborted no tests are run.

What version of the product are you using? On what operating system?

base2+dom.js latest, trying the tests on an emulated version of Window XP
with IE8 8.0.6001.18702

Please provide any additional information below.

The bug is related to the missing try/catch block around the doScroll()
trick, that will throw errors like this, I don't know if you just missed
that or you are doing the try/catch elsewhere before calling this, however
just digging in the code I could make it work by changing it like this:

"@MSIE":{
  listen: function(a) {
      deferUntil(this.fire, function() {
        try {
          return a.body && (a.body.doScroll("left")||true)
        } catch(e) { }
      },0)
    }
  },

sorry for the missing semicolons and one char vars I took it from the
compressed file you sent and I was not sure how to get at the original
source code, I know the one on Google Code is not the one you sent. :-)

Oh.. and if there are no specific reasons you have for using "body" I will
certainly change that to be "document.documentElement" instead.

Original issue reported on code.google.com by diego.pe...@gmail.com on 8 Mar 2010 at 10:36

GoogleCodeExporter commented 9 years ago
Thanks Diego!

For other base2 users please note that this bug appears in unreleased code that 
Diego 
is testing.

Original comment by dean.edw...@gmail.com on 9 Mar 2010 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 9 Mar 2010 at 10:16

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 9 Mar 2010 at 11:21

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 9 Mar 2010 at 11:21