<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+* Make `RE_BUGGY_QSAPI` filter out selectors that cause IE to throw errors. [jddalton]
+
 * Fix a bug in the compiler for a selector like `.a1 ~ *` throwing an error when the W3C element traversal api is supported. [jddalton]
 
 * unit test: Add Slick XML unit test and fix a bug with JSSpec in Opera 9.64. [jddalton]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -232,17 +232,24 @@ NW.Dom = (function(global) {
       // :enabled :disabled bugs with hidden fields (Firefox 3.5 QSA bug)
       // http://www.w3.org/TR/html5/interactive-elements.html#selector-enabled
       // IE8 throws error with these pseudos
+      isBuggy = true;
       div.innerHTML = '&lt;input type=&quot;hidden&quot;&gt;';
+
       try {
-        div.querySelectorAll(':enabled').length === 1 &amp;&amp; pattern.push(':enabled', ':disabled');
+        isBuggy = div.querySelectorAll(':enabled').length === 1;
       } catch(e) { }
 
+      isBuggy &amp;&amp; pattern.push(':enabled', ':disabled');
+
       // :checked bugs whith checkbox fields (Opera 10beta3 bug)
+      isBuggy = true;
       div.innerHTML = '&lt;input type=&quot;checkbox&quot; checked&gt;';
       try {
-        div.querySelectorAll(':checked').length !== 1 &amp;&amp; pattern.push(':checked');
+        isBuggy = div.querySelectorAll(':checked').length !== 1;
       } catch(e) { }
 
+      isBuggy &amp;&amp; pattern.push(':checked');
+
       // :link bugs with hyperlinks matching (Firefox/Safari)
       div.innerHTML = '&lt;a href=&quot;x&quot;&gt;&lt;/a&gt;';
       div.querySelectorAll(':link').length !== 1 &amp;&amp; pattern.push(':link');</diff>
      <filename>src/nwmatcher.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>677cafe5f31de16d7691eaaa2044b6261b57f988</id>
    </parent>
  </parents>
  <author>
    <name>jdalton</name>
    <email>john.david.dalton@gmail.com</email>
  </author>
  <url>http://github.com/jdalton/nwmatcher/commit/0e3d4655b1e8f667c280847e9e71aea725c1d2b3</url>
  <id>0e3d4655b1e8f667c280847e9e71aea725c1d2b3</id>
  <committed-date>2009-11-10T09:52:19-08:00</committed-date>
  <authored-date>2009-11-10T09:52:15-08:00</authored-date>
  <message>nwmatcher: Make `RE_BUGGY_QSAPI` filter out selectors that cause IE to throw errors. [jddalton]</message>
  <tree>b1b26dd59b458df6a9865fcd9dce13c1ce4ad9fb</tree>
  <committer>
    <name>jdalton</name>
    <email>john.david.dalton@gmail.com</email>
  </committer>
</commit>
