[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

abarth at webkit.org abarth at webkit.org
Wed Dec 22 14:27:01 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 75ac36693d4a4f5f6e637d76a816395fbc9bfe91
Author: abarth at webkit.org <abarth at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Oct 8 22:19:51 2010 +0000

    2010-10-08  Adam Barth  <abarth at webkit.org>
    
            Reviewed by Darin Adler.
    
            Dynamically added elements should take priority in getElementById
            https://bugs.webkit.org/show_bug.cgi?id=9354
    
            Our behavior now appears to match Firefox.  This test just documents
            our behavior.
    
            * fast/dom/multiple-ids-expected.txt: Added.
            * fast/dom/multiple-ids.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@69425 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index ab384c4..4b1c355 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,16 @@
+2010-10-08  Adam Barth  <abarth at webkit.org>
+
+        Reviewed by Darin Adler.
+
+        Dynamically added elements should take priority in getElementById
+        https://bugs.webkit.org/show_bug.cgi?id=9354
+
+        Our behavior now appears to match Firefox.  This test just documents
+        our behavior.
+
+        * fast/dom/multiple-ids-expected.txt: Added.
+        * fast/dom/multiple-ids.html: Added.
+
 2010-10-08  Andy Estes  <aestes at apple.com>
 
         Reviewed by Darin Adler.
diff --git a/LayoutTests/fast/dom/multiple-ids-expected.txt b/LayoutTests/fast/dom/multiple-ids-expected.txt
new file mode 100644
index 0000000..ad9e485
--- /dev/null
+++ b/LayoutTests/fast/dom/multiple-ids-expected.txt
@@ -0,0 +1,7 @@
+
+
+1. Found [object HTMLDivElement] (should be a div element)
+2. Found [object HTMLDivElement] (should be a div element)
+3. Found [object HTMLDivElement] (should be a div element)
+4. Found [object HTMLDivElement] (should be a div element)
+
diff --git a/LayoutTests/fast/dom/multiple-ids.html b/LayoutTests/fast/dom/multiple-ids.html
new file mode 100644
index 0000000..51aa63b
--- /dev/null
+++ b/LayoutTests/fast/dom/multiple-ids.html
@@ -0,0 +1,34 @@
+<head>
+<script>
+if (window.layoutTestController)
+    layoutTestController.dumpAsText();
+
+function doTest() {
+
+    result = document.getElementById("result");
+
+    document.getElementById('labo').innerHTML = "<form><select name='labo' id='labo'><option>1</option><option>2</option></select><form>";
+    sel = document.getElementById("labo");
+    result.innerHTML += ("1. Found " + sel + " (should be a div element)\n");
+
+    document.getElementById('labo2').innerHTML = "<span id='labo2'></<span>";
+    sel = document.getElementById("labo2");
+    result.innerHTML += ("2. Found " + sel + " (should be a div element)\n");
+
+    sel = document.getElementById("labo3");
+    result.innerHTML += ("3. Found " + sel + " (should be a div element)\n");
+
+    sel = document.getElementById("labo4");
+    result.innerHTML += ("4. Found " + sel + " (should be a div element)\n");
+}
+
+</script>
+</head>
+<body onload="doTest()">
+<div id='labo'></div>
+<div id='labo2'></div>
+<div id='labo3'><form><select name='labo3' id='labo3'><option>1</option><option>2</option></select><form></div>
+<div id='labo4'><span name='labo4' id='labo4'></span></div>
+
+<pre id="result"></pre>
+</body>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list