<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+* Prevent exception when using Selector to search for an attribute that is not present. [gryn, Andrew Dupont]
+
 * Fix issues where Firefox improperly returns the wrong node from a call to Event.element. Also fixes possible exception in Event.element in IE. [jdalton, Andrew Dupont]
 
 * Fix issue where Safari 3 deletes custom properties from the document object when the page is returned to via the back button. [mzsanford, kangax, Andrew Dupont]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -644,13 +644,14 @@ Object.extend(Selector, {
   },
     
   operators: {
-    '=':  function(nv, v) { return nv == v; },
-    '!=': function(nv, v) { return nv != v; },
-    '^=': function(nv, v) { return nv.startsWith(v); },
+    '^=': function(nv, v) { return nv == v || nv &amp;&amp; nv.startsWith(v); },
+    '$=': function(nv, v) { return nv == v || nv &amp;&amp; nv.endsWith(v); },
+    '*=': function(nv, v) { return nv == v || nv &amp;&amp; nv.include(v); },
     '$=': function(nv, v) { return nv.endsWith(v); },
     '*=': function(nv, v) { return nv.include(v); },
     '~=': function(nv, v) { return (' ' + nv + ' ').include(' ' + v + ' '); },
-    '|=': function(nv, v) { return ('-' + nv.toUpperCase() + '-').include('-' + v.toUpperCase() + '-'); }
+    '|=': function(nv, v) { return ('-' + (nv || &quot;&quot;).toUpperCase() +
+     '-').include('-' + (v || &quot;&quot;).toUpperCase() + '-'); }
   },
   
   split: function(expression) {</diff>
      <filename>src/selector.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>55e5d645e14407d336293257d3a98eab0a06b7cd</id>
    </parent>
  </parents>
  <author>
    <name>Andrew Dupont</name>
    <email>prototype@andrewdupont.net</email>
  </author>
  <url>http://github.com/sstephenson/prototype/commit/35a70710b0cec60598ff64715316032e16cd5c87</url>
  <id>35a70710b0cec60598ff64715316032e16cd5c87</id>
  <committed-date>2008-03-28T11:31:36-07:00</committed-date>
  <authored-date>2008-03-28T11:31:36-07:00</authored-date>
  <message>Prevent exception when using Selector to search for an attribute that is not present.</message>
  <tree>600215f8266e269222cd8e050906e66688910294</tree>
  <committer>
    <name>Andrew Dupont</name>
    <email>prototype@andrewdupont.net</email>
  </committer>
</commit>
