jim-jim-jim / base2

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

matchSingle triggers IE6 error if node not found #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Using latest base2-dom-fp.js from SVN.

The code snippet attached to this ticket will reproduce the problem.

Calling:

    document.matchSingle( "#noSuchId" );

when no such ID exists will trigger an error in IE6:

"'ownerDocument' is null or not an object"

Works fine in latest FireFox, where it returns null, as expected.

Original issue reported on code.google.com by phoenici...@gmail.com on 27 Jun 2007 at 7:31

Attachments:

GoogleCodeExporter commented 9 years ago
Good catch. This is a simple fix for Selector.parse().

Original comment by dean.edw...@gmail.com on 27 Jun 2007 at 9:10

GoogleCodeExporter commented 9 years ago
Fixed in trunk.

Original comment by dean.edw...@gmail.com on 3 Jul 2007 at 8:38

GoogleCodeExporter commented 9 years ago

Original comment by doek...@gmail.com on 14 Jul 2007 at 7:09