<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 *SVN*
 
-* Make document.getElementsByClassName match the WHATWG Web Applications 1.0 specification which was adopted in Firefox 3 (http://www.whatwg.org/specs/web-apps/current-work/#getelementsbyclassname). It now supports multiple class names given as a whitespace-separated list in a string. Array argument is not supported. The method will only return the nodes that match all the class names. In browsers that implement the method natively it will not be overwritten.  Closes #8401.  [Mislav Marohni&#263;]
+* Make document.getElementsByClassName match a subset of the WHATWG Web Applications 1.0 specification which was adopted in Firefox 3 (http://www.whatwg.org/specs/web-apps/current-work/#getelementsbyclassname). It now supports multiple class names given as a whitespace-separated list in a string. Array argument is not supported. The method will only return the nodes that match all the class names. In browsers that implement the method natively it will not be overwritten.  Closes #8401.  [Mislav Marohni&#263;]
   Example:
     document.getElementsByClassName('foo bar')
 </diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -438,9 +438,12 @@
       var valid = '{test: \n\r&quot;hello world!&quot;}';
       var invalid = '{test: &quot;hello world!&quot;';
       var dangerous = '{});attackTarget = &quot;attack succeeded!&quot;;({}';
-      var longString = '&quot;' + '123456789\\&quot;'.times(1000) + '&quot;';
+
+      // use smaller huge string size for KHTML
+      var size = navigator.userAgent.include('KHTML') ? 20 : 100;
+      var longString = '&quot;' + '123456789\\&quot;'.times(size * 10) + '&quot;';
       var object = '{' + longString + ': ' + longString + '},';
-      var huge = '[' + object.times(100) + '{&quot;test&quot;: 123}]';
+      var huge = '[' + object.times(size) + '{&quot;test&quot;: 123}]';
       
       assertEqual('hello world!', valid.evalJSON().test);
       assertEqual('hello world!', valid.evalJSON(true).test);</diff>
      <filename>test/unit/string.html</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d6bf5e40ce78d7ba8e7a1fe5e128e60c18c40369</id>
    </parent>
  </parents>
  <author>
    <name>Sam Stephenson</name>
    <email>sam@37signals.com</email>
  </author>
  <url>http://github.com/sstephenson/prototype/commit/f2d304b3eebdb46665eb3935632ec138eddc2a30</url>
  <id>f2d304b3eebdb46665eb3935632ec138eddc2a30</id>
  <committed-date>2007-06-19T16:31:41-07:00</committed-date>
  <authored-date>2007-06-19T16:31:41-07:00</authored-date>
  <message>prototype: Merge [7066] from branches/1-5-1-1</message>
  <tree>c1c17f52c81f01607a46162fb898466eeea3a17d</tree>
  <committer>
    <name>Sam Stephenson</name>
    <email>sam@37signals.com</email>
  </committer>
</commit>
