[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/khtml
From: Harri Porten <porten () kde ! org>
Date: 2005-05-14 23:49:02
Message-ID: 1116114542.302540.28875.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 413942 by porten:
always return non-null string from innerHTML() and innerText().
M +5 -0 trunk/KDE/kdelibs/khtml/ChangeLog
M +2 -2 trunk/KDE/kdelibs/khtml/html/html_elementimpl.cpp
--- trunk/KDE/kdelibs/khtml/ChangeLog #413941:413942
@@ -1,3 +1,8 @@
+2005-05-15 Harri Porten <porten@kde.org>
+
+ * html/html_elementimpl.cpp: always return a non-null string
+ from innerHTML() and innerText()
+
2005-05-14 Ivor Hewitt <ivor@ivor.org>
* khtml_settings.cc: Support full wildcard expressions in AdblocK
--- trunk/KDE/kdelibs/khtml/html/html_elementimpl.cpp #413941:413942
@@ -438,7 +438,7 @@
DOMString HTMLElementImpl::innerHTML() const
{
- DOMString result;
+ DOMString result = "";
for (NodeImpl *child = firstChild(); child != NULL; child = child->nextSibling())
result += child->toString();
return result;
@@ -446,7 +446,7 @@
DOMString HTMLElementImpl::innerText() const
{
- DOMString text;
+ DOMString text = "";
if(!firstChild())
return text;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic