diff -Naur kdelibs-3.5.8.orig/khtml/html/html_elementimpl.cpp kdelibs-3.5.8/khtml/html/html_elementimpl.cpp
--- kdelibs-3.5.8.orig/khtml/html/html_elementimpl.cpp 2007-10-08 16:01:25.000000000 +0200
+++ kdelibs-3.5.8/khtml/html/html_elementimpl.cpp 2007-11-20 12:00:45.000000000 +0100
@@ -561,6 +561,13 @@
void HTMLElementImpl::setInnerHTML( const DOMString &html, int &exceptioncode )
{
+ // Works line innerText in Gecko
+ // ### test if needed for ID_SCRIPT as well.
+ if ( id() == ID_STYLE ) {
+ setInnerText(html, exceptioncode);
+ return;
+ }
+
DocumentFragment fragment = createContextualFragment( html );
if ( fragment.isNull() ) {
exceptioncode = DOMException::NO_MODIFICATION_ALLOWED_ERR;