XML rendering
Leo Savernik
l.savernik at aon.at
Sun Jun 6 23:56:14 CEST 2004
Am Sonntag 06 Juni 2004 21:47 schrieb Zack Rusin:
> On Saturday 05 June 2004 09:18, Leo Savernik wrote:
> > Though, the attached testcase still doesn't work in khtml (throws
> > some "null object" error. Is getElementsByTagName not impl'd for
> > xml?). Compare to Mozilla to check what the testcase should do.
>
> k, it's fixed.
[...]
Wow, cool, thanks. Now even my catalog works (document heavily composed of
xml+javascript).
Yet I managed to crash khtml with the assertion:
konqueror: /leo/projekte/Fremde/kde/src/kdelibs/khtml/xml/dom_docimpl.cpp:1807:
void DOM::DocumentImpl::styleSheetLoaded(): Zusicherung »m_pendingStylesheets
> 0« nicht erfüllt.
and this BT:
[New Thread 1024 (LWP 26548)]
[KCrash handler]
#6 0x41552bc1 in __kill () from /lib/libc.so.6
#7 0x4149a7ac in pthread_kill () from /lib/libpthread.so.0
#8 0x4149ac96 in raise () from /lib/libpthread.so.0
#9 0x41553fe1 in abort () from /lib/libc.so.6
#10 0x4154cbe8 in __assert_fail () from /lib/libc.so.6
#11 0x41b1a76f in DOM::DocumentImpl::styleSheetLoaded (this=0x8334b58)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/xml/dom_docimpl.cpp:1807
#12 0x41b2e4ff in DOM::ProcessingInstructionImpl::setStyleSheet (
this=0x84d5a08, url=@0x82d0a94, sheet=@0x82d0acc)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/xml/dom_xmlimpl.cpp:404
#13 0x41bc848b in khtml::CachedCSSStyleSheet::ref (this=0x82d0a78,
c=0x84d5a34)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/misc/loader.cpp:230
#14 0x41b2e36f in DOM::ProcessingInstructionImpl::checkStyleSheet (
this=0x84d5a08)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/xml/dom_xmlimpl.cpp:379
#15 0x41b2b563 in khtml::XMLHandler::processingInstruction (this=0x82da644,
target=@0x82da8cc, data=@0x82dacdc)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/xml/xml_tokenizer.cpp:280
#16 0x40f068e3 in QXmlSimpleReader::parseProlog (this=0x82da69c)
at xml/qxml.cpp:3164
#17 0x40f06048 in QXmlSimpleReader::parseBeginOrContinue (this=0x82da69c,
state=0, incremental=true) at xml/qxml.cpp:2925
#18 0x40f05ffb in QXmlSimpleReader::parseContinue (this=0x82da69c)
at xml/qxml.cpp:2914
#19 0x41b2bd8d in khtml::XMLTokenizer::write (this=0x82da5e8, str=@0xbfffc858,
appendData=true)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/xml/xml_tokenizer.cpp:406
#20 0x41ae7324 in KHTMLPart::write (this=0x8393728,
str=0xbfffca2c "<?xml version=\"1.0\"
encoding=\"ISO8859-1\" ?>\n<?xml-stylesheet type=\"text/css\"
href=\"catalog.css\"?>\n<!DOCTYPE catalog [\n<!ENTITY rarr \"→
\">\n<!ENTITY harr \"↔\">\n<!ENTITY raquo \"»\">\n<!ENTIT"...,
len=8192)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/khtml_part.cpp:1734
#21 0x41ae5c45 in KHTMLPart::slotRestoreData (this=0x8393728,
data=@0xbfffca24)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/khtml_part.cpp:1441
#22 0x41b00f00 in KHTMLPart::qt_invoke (this=0x8393728, _id=18, _o=0xbfffc9c4)
at khtml_part.moc:476
#23 0x40d0620a in QObject::activate_signal (this=0x83421f8, clist=0x84258a0,
o=0xbfffc9c4) at kernel/qobject.cpp:2356
#24 0x41b0d375 in KHTMLPageCacheDelivery::emitData (this=0x83421f8,
t0=@0xbfffca24) at khtml_pagecache.moc:177
#25 0x41b0ce42 in KHTMLPageCache::sendData (this=0x8376a78)
at /leo/projekte/Fremde/kde/src/kdelibs/khtml/khtml_pagecache.cpp:264
#26 0x41b0d15e in KHTMLPageCache::qt_invoke (this=0x8376a78, _id=2,
_o=0xbfffeae0) at khtml_pagecache.moc:82
#27 0x40d0620a in QObject::activate_signal (this=0x8146050, clist=0x8375338,
o=0xbfffeae0) at kernel/qobject.cpp:2356
#28 0x41010ef2 in QSignal::signal (this=0x8146050, t0=@0x8146078)
at .moc/debug-shared-mt/moc_qsignal.cpp:100
#29 0x40d1fa10 in QSignal::activate (this=0x8146050) at kernel/qsignal.cpp:212
#30 0x40d25f62 in QSingleShotTimer::event (this=0x8146028)
at kernel/qtimer.cpp:277
#31 0x40cb7a55 in QApplication::internalNotify (this=0xbffff194,
receiver=0x8146028, e=0xbfffed28) at kernel/qapplication.cpp:2618
#32 0x40cb6b1b in QApplication::notify (this=0xbffff194, receiver=0x8146028,
e=0xbfffed28) at kernel/qapplication.cpp:2341
#33 0x407f2c02 in KApplication::notify (this=0xbffff194, receiver=0x8146028,
event=0xbfffed28)
at /leo/projekte/Fremde/kde/src/kdelibs/kdecore/kapplication.cpp:511
#34 0x41101d64 in QApplication::sendEvent (receiver=0x8146028,
event=0xbfffed28) at .moc/debug-shared-mt/../../kernel/qapplication.h:491
#35 0x40ca889a in QEventLoop::activateTimers (this=0x80e03c8)
at kernel/qeventloop_unix.cpp:558
#36 0x40c67f3a in QEventLoop::processEvents (this=0x80e03c8, flags=4)
at kernel/qeventloop_x11.cpp:389
#37 0x40cc7fd0 in QEventLoop::enterLoop (this=0x80e03c8)
at kernel/qeventloop.cpp:198
#38 0x40cc7ef5 in QEventLoop::exec (this=0x80e03c8)
at kernel/qeventloop.cpp:145
#39 0x40cb7c55 in QApplication::exec (this=0xbffff194)
at kernel/qapplication.cpp:2741
#40 0x4005b89e in kdemain (argc=2, argv=0xbffff2f4)
at /leo/projekte/Fremde/kde/src/kdebase/konqueror/konq_main.cc:204
#41 0x8048766 in main (argc=2, argv=0xbffff2f4) at konqueror.la.cc:2
#42 0x41542baf in __libc_start_main () from /lib/libc.so.6
mfg
Leo
More information about the Khtml-devel
mailing list