Bug 115882 - CSS Support for XML
Summary: CSS Support for XML
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml xml (show other bugs)
Version: 3.4.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Maksim Orlovich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-07 22:51 UTC by Steven T. Hatton
Modified: 2012-06-18 14:03 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
What a recent Mozilla rendering looks like (56.36 KB, image/png)
2005-11-07 22:53 UTC, Steven T. Hatton
Details
patch (2.93 KB, patch)
2005-11-16 23:12 UTC, Maksim Orlovich
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steven T. Hatton 2005-11-07 22:51:29 UTC
Version:           3.4.2 (using KDE 3.4.2 Level "b" , SUSE 10.0)
Compiler:          Target: i586-suse-linux
OS:                Linux (i686) release 2.6.13-15-default

Someone might demote this to a wishlist item, but I find it to be a serious limitation. The following site is rendered as 
"OneTwoThreeTeX and LaTeXTroffLoutLevel 1First nested list:Level 2Second nested list:Level 3Level 2Level 1" using Konqueror:
 http://www.badgers-in-foil.co.uk/projects/docbook-css/tests/itemizedlist.xml

Try it with Mozilla or FireFox.  I'll have a screenshot presently.
Comment 1 Steven T. Hatton 2005-11-07 22:53:30 UTC
Created attachment 13325 [details]
What a recent Mozilla rendering looks like
Comment 2 Allan Sandfeld 2005-11-07 23:26:09 UTC
I can confirm, though the bug is wrongly named. We do have CSS for XML, for some reason it just doesn't trigger here.

I should note this XML is unlike most XML served correctly as application/xml, which makes it use the real XML-tokenizer in KHTML
Comment 3 Allan Sandfeld 2005-11-07 23:28:52 UTC
Ouch, even more oddly. It loads correctly when loading via the "Back" button.
Comment 4 Steven T. Hatton 2005-11-08 06:29:44 UTC
How are you getting the mimetype?  I used to know how to ask for a page using 
telnet, but it's been quite some time since I did that.

Also, I read somewhere recently (that doesn't make it true) that 
application/xml had been deprecated in favor of text/xml.
Comment 5 Allan Sandfeld 2005-11-08 11:05:33 UTC
I used "curl -I" to get the HTTP header.
Comment 6 Maksim Orlovich 2005-11-08 14:55:18 UTC
Press ctrl-i instead ;-)
Comment 7 Maksim Orlovich 2005-11-16 22:38:44 UTC
We need something like this:
http://www.cs.cornell.edu/~maksim/WC/changesets/1683.html
to fix it. Basically, there is nothing handling the 'stylesheet loaded' event and all that
Comment 8 Maksim Orlovich 2005-11-16 23:12:10 UTC
Created attachment 13498 [details]
patch

OK, this is IMHO the right fix, mostly following Safari code, but with some
slight tweaks from me. Basically, it makes the "loading delayed by @import'ed"
stylesheets case work properly, by also handling the sheetLoaded notification.
Comment 9 Allan Sandfeld 2007-12-05 11:38:39 UTC
Maksim's patch works great on the original test-case, but it doesn't solve this case of the same or similar bug:

http://www.w3.org/Style/CSS/Test/CSS3/Selectors/20060307/xml/tests/css3-modsel-182.xml
Comment 10 Maksim Orlovich 2007-12-05 20:54:00 UTC
Allan: the reason I didn't commit is that this whole FOUC thing needs an utter rework, it's too britle :(
Comment 11 James Spahlinger 2008-04-19 14:38:44 UTC
Bug still occurs  in 4.0.3

Using Gentoo Linux ~x86 (testing in gentoo lingo). KDE 4.0.3 and the majority of packages compiled using gcc 4.3.0. 
Comment 12 Myriam Schweingruber 2012-06-18 14:03:48 UTC
Message from the Bugsquad and Konqueror teams:
This bug is closed as outdated, as we do not have the manpower to maintain the KDE3 version anymore.
If you still can reproduce this issue with Konqueror 4.8.4 or later, please open a new report.
Thank you for your understanding.