[prev in list] [next in list] [prev in thread] [next in thread]
List: kfm-devel
Subject: XML testcase [CPU load 100%], some bug with XML CSS2 formatting (Re: Bug#34331: XHTML page crashes K
From: Vadim Plessky <lucy-ples () mtu-net ! ru>
Date: 2001-11-01 15:20:01
[Download RAW message or body]
On Wednesday 31 October 2001 19:55, jose@post4.tele.dk wrote:
| Package: khtml
| Version: KDE 2.2.1
|
| Trying to view this page
| http://www.opera.com/pressreleases/xhtml/20011026.xml
| crashes konqueror and sets CPU load to 100%
|
Here is a testcase demonstrating crash (100% CPU usage, Konq hanged) for
KHTML/Konqueror.
Save all attached files to disk, and run table-xml-demo-bad.xml in Konq.
As it's size just 252 bytes, I believe it's very close to minimal testcase
(while still shows something on screen when slightly modified :-)
at the same time, table-xml-demo.xml and table-xml-demo-2.xml are rendered by
Konq without any heavy CPU usage, and display one paragraph and
CSS2-formatted table.
There is a rendering bug, though, with table-xml-demo.xml.
Paragraph with Navy-colored text should go first, but it displayed second,
after table (there is no display: table element in that example, it's
anonimous)
You can compare these examples in Mozilla - it renders them in similar way.
--
Vadim Plessky
http://kde2.newmail.ru (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/
["table-xml-demo-2.xml" (text/xml)]
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="xstyle.css" type="text/css"?>
<Test>
<Info>Simple XML demo - table with CSS2 formatted cells</Info>
<TBL>
<HBOX>
<VBOX>John</VBOX>
<VBOX>Smith</VBOX>
<VBOX>1998</VBOX>
</HBOX>
<HBOX>
<VBOX>Mary</VBOX>
<VBOX>Ann</VBOX>
<VBOX>1971</VBOX>
</HBOX>
</TBL>
</Test>
["table-xml-demo.xml" (text/xml)]
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="xstyle.css" type="text/css"?>
<Test>
<Info>Simple XML demo - table with CSS2 formatted cells</Info>
<HBOX>
<VBOX>John</VBOX>
<VBOX>Smith</VBOX>
<VBOX>1998</VBOX>
</HBOX>
</Test>
["table-xml-demo-bad.xml" (text/xml)]
<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="xstyle-bad.css" type="text/css"?>
<DOC>
<Info>Simple XML demo - table with CSS2 formatted cells</Info>
<HBOX>
<VBOX>John</VBOX>
<VBOX>Smith</VBOX>
<VBOX>1998</VBOX>
</HBOX>
<DOC>
["xstyle-bad.css" (text/plain)]
P { display: block }
Par { display: block; font-name: Arial, Helvetica, sans-serif; font-size: 12pt }
HBOX { display: table-row }
VBOX { display: table-cell }
["xstyle.css" (text/plain)]
Test { display: block }
P { display: block }
Info { display: block;
font-name: Arial, Helvetica, sans-serif;
font-size: 12pt;
color: navy }
TBL { display: table }
HBOX { display: table-row }
VBOX { display: table-cell; padding: 2pt; }
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic