zzsoszz / base2

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

matchesSelector sometimes fails when it should succeed #110

Open GoogleCodeExporter opened 9 years ago

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

Try the following HTML in IE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html>
<head>
<title>base2 Element.matchesSelector test</title>
<script type="text/javascript"
src="http://base2.googlecode.com/svn/trunk/lib/base2-dom-fp.js"></script>
</head>
<body>
  <ul>
    <li><a href="#one">one</a></li>
    <li><a href="#two">two</a></li>
  </ul>
</body>
<script>
base2.JavaScript.bind(window);
base2.DOM.bind(document);
var elt = document.querySelectorAll("ul > li").item(1);
alert(elt.matchesSelector("ul > li"));
</script>
</html>

What is the expected output? What do you see instead?
Should alert "true"
Actually alerts "false"

What version of the product are you using? On what operating system?
version-1.0 and current on IE

Please provide any additional information below.
Seems to be linked to issue #109. Over-riding base2-DOM provided
getAttribute / setAttribute / removeAttribute seems to fix it.

Original issue reported on code.google.com by shogu...@gmail.com on 12 May 2009 at 6:44

GoogleCodeExporter commented 9 years ago
See also issue #99

Original comment by diox...@gmail.com on 9 Jun 2009 at 5:27

GoogleCodeExporter commented 9 years ago

Original comment by dean.edw...@gmail.com on 21 Jun 2009 at 4:04

GoogleCodeExporter commented 9 years ago
Fixing issue #109 seems to fix this.

Original comment by dean.edw...@gmail.com on 7 Jul 2009 at 4:59