[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677
hyatt
hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:45:58 UTC 2009
The following commit has been merged in the debian/unstable branch:
commit b3307e1e7ae0e560ae15c1bb1abe42e609b4fe24
Author: hyatt <hyatt at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date: Mon Sep 30 21:39:28 2002 +0000
Fix the case sensitivity problem with attribute names
in HTML. They are now lower-cased when being queried
from the DOM. Bug 3058145.
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::attrName):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2211 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 2e17948..0b5435b 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,5 +1,14 @@
2002-10-01 David Hyatt <hyatt at apple.com>
+ Fix the case sensitivity problem with attribute names
+ in HTML. They are now lower-cased when being queried
+ from the DOM. Bug 3058145.
+
+ * khtml/xml/dom_docimpl.cpp:
+ (DocumentImpl::attrName):
+
+2002-10-01 David Hyatt <hyatt at apple.com>
+
Make sure to keep the fix checked in for 1.18. That fix is
good.
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 2e17948..0b5435b 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,5 +1,14 @@
2002-10-01 David Hyatt <hyatt at apple.com>
+ Fix the case sensitivity problem with attribute names
+ in HTML. They are now lower-cased when being queried
+ from the DOM. Bug 3058145.
+
+ * khtml/xml/dom_docimpl.cpp:
+ (DocumentImpl::attrName):
+
+2002-10-01 David Hyatt <hyatt at apple.com>
+
Make sure to keep the fix checked in for 1.18. That fix is
good.
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 2e17948..0b5435b 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,5 +1,14 @@
2002-10-01 David Hyatt <hyatt at apple.com>
+ Fix the case sensitivity problem with attribute names
+ in HTML. They are now lower-cased when being queried
+ from the DOM. Bug 3058145.
+
+ * khtml/xml/dom_docimpl.cpp:
+ (DocumentImpl::attrName):
+
+2002-10-01 David Hyatt <hyatt at apple.com>
+
Make sure to keep the fix checked in for 1.18. That fix is
good.
diff --git a/WebCore/khtml/xml/dom_docimpl.cpp b/WebCore/khtml/xml/dom_docimpl.cpp
index 76dcc7b..6f0f12d 100644
--- a/WebCore/khtml/xml/dom_docimpl.cpp
+++ b/WebCore/khtml/xml/dom_docimpl.cpp
@@ -1634,15 +1634,19 @@ NodeImpl::Id DocumentImpl::attrId(DOMStringImpl* _namespaceURI, DOMStringImpl *_
DOMString DocumentImpl::attrName(NodeImpl::Id _id) const
{
+ DOMString result;
if (_id >= ATTR_LAST_ATTR)
- return m_attrNames[_id-ATTR_LAST_ATTR];
- else {
- // ### put them in a cache
- if (getDocument()->htmlMode() == DocumentImpl::XHtml)
- return getAttrName(_id).lower();
- else
- return getAttrName(_id);
- }
+ result = m_attrNames[_id-ATTR_LAST_ATTR];
+ else
+ result = getAttrName(_id);
+
+ // Attribute names are always lowercase in the DOM for both
+ // HTML and XHTML.
+ if (getDocument()->isHTMLDocument() ||
+ getDocument()->htmlMode() == DocumentImpl::XHtml)
+ return result.lower();
+
+ return result;
}
NodeImpl::Id DocumentImpl::tagId(DOMStringImpl* _namespaceURI, DOMStringImpl *_name, bool readonly)
--
WebKit Debian packaging
More information about the Pkg-webkit-commits
mailing list