[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-1414-gc69ee75

joepeck at webkit.org joepeck at webkit.org
Thu Oct 29 20:44:56 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit a7e5c8e75b5404e71a0a7a6740f2b235f0b338f6
Author: joepeck at webkit.org <joepeck at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Oct 15 06:41:42 2009 +0000

    2009-10-14  Joseph Pecoraro  <joepeck at webkit.org>
    
            Reviewed by Adam Barth.
    
            [HTML5] Add document.head
            https://bugs.webkit.org/show_bug.cgi?id=30232
    
            Test is fast/dom/document-head.html
    
            * dom/Document.idl: added readonly attribute head
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49610 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index 22c36ce..73e1c26 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,14 @@
+2009-10-14  Joseph Pecoraro  <joepeck at webkit.org>
+
+        Reviewed by Adam Barth.
+
+        [HTML5] Add document.head
+        https://bugs.webkit.org/show_bug.cgi?id=30232
+
+        * fast/dom/document-head-expected.txt: Added.
+        * fast/dom/document-head.html: Added.
+        * fast/dom/script-tests/document-head.js: Added.
+
 2009-10-14  Adam Barth  <abarth at webkit.org>
 
         Reviewed by Darin Adler.
diff --git a/LayoutTests/fast/dom/document-head-expected.txt b/LayoutTests/fast/dom/document-head-expected.txt
new file mode 100644
index 0000000..d0c7db2
--- /dev/null
+++ b/LayoutTests/fast/dom/document-head-expected.txt
@@ -0,0 +1,12 @@
+This test checks to see if document.head is available, readonly, and the same element as what we would expect by getting it by other means.
+
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+
+
+PASS document.head is document.getElementsByTagName('head')[0]
+PASS document.head !== 1 is true
+PASS document.head is null
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
diff --git a/LayoutTests/fast/dom/document-head.html b/LayoutTests/fast/dom/document-head.html
new file mode 100644
index 0000000..8b45b24
--- /dev/null
+++ b/LayoutTests/fast/dom/document-head.html
@@ -0,0 +1,13 @@
+<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
+<html>
+<head>
+<link rel="stylesheet" href="../js/resources/js-test-style.css">
+<script src="../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></div>
+<script src="script-tests/document-head.js"></script>
+<script src="../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/fast/dom/script-tests/document-head.js b/LayoutTests/fast/dom/script-tests/document-head.js
new file mode 100644
index 0000000..a096522
--- /dev/null
+++ b/LayoutTests/fast/dom/script-tests/document-head.js
@@ -0,0 +1,11 @@
+description("This test checks to see if document.head is available, readonly, and the same element as what we would expect by getting it by other means.");
+
+shouldBe("document.head", "document.getElementsByTagName('head')[0]");
+
+document.head = 1;
+shouldBeTrue("document.head !== 1");
+
+document.documentElement.removeChild(document.head);
+shouldBeNull("document.head");
+
+var successfullyParsed = true;
diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index d959366..c4fd46f 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,14 @@
+2009-10-14  Joseph Pecoraro  <joepeck at webkit.org>
+
+        Reviewed by Adam Barth.
+
+        [HTML5] Add document.head
+        https://bugs.webkit.org/show_bug.cgi?id=30232
+
+        Test is fast/dom/document-head.html
+
+        * dom/Document.idl: added readonly attribute head
+
 2009-10-14  Matt Mueller  <mattm at chromium.org>
 
         Reviewed by Darin Adler.
diff --git a/WebCore/dom/Document.idl b/WebCore/dom/Document.idl
index 822f860..19cb22b 100644
--- a/WebCore/dom/Document.idl
+++ b/WebCore/dom/Document.idl
@@ -172,6 +172,8 @@ module core {
                  attribute HTMLElement body
                      setter raises (DOMException);
 
+        readonly attribute HTMLHeadElement head;
+
         readonly attribute HTMLCollection images;
         readonly attribute HTMLCollection applets;
         readonly attribute HTMLCollection links;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list