[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:32:22 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit 6b148c34b9205781f91de40d2158f6db48b02ffb
Author: mjs <mjs at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Sun Mar 30 08:10:30 2003 +0000
Reviewed by Trey.
- fixed 3169064 - can't search at lonelyplanet.com; onSubmit handler fails due to problem addressing radio button
* khtml/ecma/kjs_dom.cpp:
(DOMNamedNodesCollection::tryGet): Allow lookup by id as well as
by integer index.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3964 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 31d9ee8..a78c1cc 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,13 @@
+2003-03-30 Maciej Stachowiak <mjs at apple.com>
+
+ Reviewed by Trey.
+
+ - fixed 3169064 - can't search at lonelyplanet.com; onSubmit handler fails due to problem addressing radio button
+
+ * khtml/ecma/kjs_dom.cpp:
+ (DOMNamedNodesCollection::tryGet): Allow lookup by id as well as
+ by integer index.
+
2003-03-29 Maciej Stachowiak <mjs at apple.com>
Reviewed by Trey.
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 31d9ee8..a78c1cc 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,13 @@
+2003-03-30 Maciej Stachowiak <mjs at apple.com>
+
+ Reviewed by Trey.
+
+ - fixed 3169064 - can't search at lonelyplanet.com; onSubmit handler fails due to problem addressing radio button
+
+ * khtml/ecma/kjs_dom.cpp:
+ (DOMNamedNodesCollection::tryGet): Allow lookup by id as well as
+ by integer index.
+
2003-03-29 Maciej Stachowiak <mjs at apple.com>
Reviewed by Trey.
diff --git a/WebCore/khtml/ecma/kjs_dom.cpp b/WebCore/khtml/ecma/kjs_dom.cpp
index fdfb994..1697385 100644
--- a/WebCore/khtml/ecma/kjs_dom.cpp
+++ b/WebCore/khtml/ecma/kjs_dom.cpp
@@ -1531,6 +1531,28 @@ Value DOMNamedNodesCollection::tryGet(ExecState *exec, const Identifier &propert
DOM::Node node = m_nodes[u];
return getDOMNode(exec,node);
}
+ // For IE compatibility, we need to be able to look up elements in a
+ // document.formName.name result by id as well as be index.
+
+ if (!ok) {
+ for (QValueListConstIterator<DOM::Node> it = m_nodes.begin(); it != m_nodes.end(); it++) {
+ DOM::Node node = *it;
+ DOM::NamedNodeMap attributes = node.attributes();
+ if (attributes.isNull()) {
+ continue;
+ }
+
+ DOM::Node idAttr = attributes.getNamedItem("id");
+ if (idAttr.isNull()) {
+ continue;
+ }
+
+ if (idAttr.nodeValue() == propertyName.string()) {
+ return getDOMNode(exec,node);
+ }
+ }
+ }
+
return DOMObject::tryGet(exec,propertyName);
}
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list