[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
mjs
mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 07:43:43 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 7e1768f5c48783cdb3e001738d3ec67abe4d165f
Author: mjs <mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Sat May 31 01:54:43 2003 +0000
Reviewed by Ken.
- fixed 3273544 - REGRESSION: Page disappears at http://www.urban-advantage.com/
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::getElementById): Return null when the ID is the
empty string. Otherwise we'll return the first element in the
document, usually the top-level HTML element, which is wrong and
does not match other browsers.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4459 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 53e2cd7..4544baf 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,15 @@
+2003-05-30 Maciej Stachowiak <mjs at apple.com>
+
+ Reviewed by Ken.
+
+ - fixed 3273544 - REGRESSION: Page disappears at http://www.urban-advantage.com/
+
+ * khtml/xml/dom_docimpl.cpp:
+ (DocumentImpl::getElementById): Return null when the ID is the
+ empty string. Otherwise we'll return the first element in the
+ document, usually the top-level HTML element, which is wrong and
+ does not match other browsers.
+
2003-05-30 Richard Williamson <rjw at apple.com>
As part of some cleanup when fixing 3272516 changed use of
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 53e2cd7..4544baf 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,15 @@
+2003-05-30 Maciej Stachowiak <mjs at apple.com>
+
+ Reviewed by Ken.
+
+ - fixed 3273544 - REGRESSION: Page disappears at http://www.urban-advantage.com/
+
+ * khtml/xml/dom_docimpl.cpp:
+ (DocumentImpl::getElementById): Return null when the ID is the
+ empty string. Otherwise we'll return the first element in the
+ document, usually the top-level HTML element, which is wrong and
+ does not match other browsers.
+
2003-05-30 Richard Williamson <rjw at apple.com>
As part of some cleanup when fixing 3272516 changed use of
diff --git a/WebCore/khtml/xml/dom_docimpl.cpp b/WebCore/khtml/xml/dom_docimpl.cpp
index 691c63a..9902dd2 100644
--- a/WebCore/khtml/xml/dom_docimpl.cpp
+++ b/WebCore/khtml/xml/dom_docimpl.cpp
@@ -495,6 +495,10 @@ ElementImpl *DocumentImpl::createElementNS( const DOMString &_namespaceURI, cons
ElementImpl *DocumentImpl::getElementById( const DOMString &elementId ) const
{
+ if (elementId.length() == 0) {
+ return 0;
+ }
+
QPtrStack<NodeImpl> nodeStack;
NodeImpl *current = _first;
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list