| Summary: | innerHTML for <TD> includes tags | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Ralf Wiebicke <ralf> |
| Component: | khtml | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Testcase | ||
|
Description
Ralf Wiebicke
2004-08-27 17:35:22 UTC
Created attachment 7321 [details]
Testcase
Press the button "GO".
It should pop up four alert boxes with the text "CELL A1" etc. but the alert
box shows "<TD>CELL A1 </TD>" etc.
Same problem here but with <span> Testcase on http://ets.camlann.de. Click on one of the "Übernehmen"-Buttons and see the input-fields above. This code works with all other browsers and also with konqueror from kde 3.2. CVS commit by savernik: Fixed innerHTML getter to not behave like outerHTML. CCMAIL: 88242-done@bugs.kde.org M +4 -1 html_elementimpl.cpp 1.180 --- kdelibs/khtml/html/html_elementimpl.cpp #1.179:1.180 @@ -436,5 +436,8 @@ void HTMLElementImpl::removeCSSProperty( DOMString HTMLElementImpl::innerHTML() const { - return toString(); + DOMString result; + for (NodeImpl *child = firstChild(); child != NULL; child = child->nextSibling()) + result += child->toString(); + return result; } CVS commit by savernik: Backport: Fixed innerHTML getter to not behave like outerHTML. CCMAIL: 88242@bugs.kde.org M +4 -1 html_elementimpl.cpp 1.179.2.1 --- kdelibs/khtml/html/html_elementimpl.cpp #1.179:1.179.2.1 @@ -436,5 +436,8 @@ void HTMLElementImpl::removeCSSProperty( DOMString HTMLElementImpl::innerHTML() const { - return toString(); + DOMString result; + for (NodeImpl *child = firstChild(); child != NULL; child = child->nextSibling()) + result += child->toString(); + return result; } |