From konq-bugs Mon Jan 31 13:50:05 2005 From: David Faure Date: Mon, 31 Jan 2005 13:50:05 +0000 To: konq-bugs Subject: [Bug 96187] javascript (DOM exception 7) error returns a blank page Message-Id: <20050131135005.22936.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=konq-bugs&m=110717941123189 ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. http://bugs.kde.org/show_bug.cgi?id=96187 faure kde org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED ------- Additional Comments From faure kde org 2005-01-31 14:50 ------- CVS commit by faure: setInnerHTML fix: check whether the contents will be allowed before deleting all children BUG: 96187 M +6 -1 html_elementimpl.cpp 1.184 --- kdelibs/khtml/html/html_elementimpl.cpp #1.183:1.184 @ -554,6 +554,11 @ bool HTMLElementImpl::setInnerHTML( cons return false; - removeChildren(); int ec = 0; + // Make sure adding the new child is ok, before removing all children (#96187) + checkAddChild( fragment.handle(), ec); + if ( ec ) + return false; + + removeChildren(); appendChild( fragment.handle(), ec ); return !ec; _______________________________________________ Konq-bugs mailing list Konq-bugs@mail.kde.org https://mail.kde.org/mailman/listinfo/konq-bugs