Konqueror and dynamic loading / deleting of css

Neill Jones neilljones at yahoo.co.uk
Mon Jan 29 13:44:33 GMT 2007


Hi Germaine and anyone else reading,

I retract my bug spot as during an attempt to produce a simple test case, I
discovered the true cause of the problem (cheeks redden slightly).

However,  the cause of the problem still seems to be an inconsistancy in
Konqueror.  It doesn't match code that is inside comments (or doesn't
return the comments when calling innerHTML - can't tell which), whereas
Firefox, Opera, Epiphany and IE6 do.

I've written up a test case, which I've attached here,
but before submitting it as a bug, does anyone know if this has been 
reported?
I have found a similar bug https://bugs.kde.org/show_bug.cgi?id=30396
which has been fixed in 2.1.2. but that was some time ago.

Regards

Neill Jones
> Hi all,
>
> I hope this is the right list - I have been given this one to ask this 
> question.
>
> I am developing a web site where we dynamically add to the document using
> AJAX (as is the trend nowadays :-) ). Part of the code that is loaded 
> contains
> links to css specifically related to that new component only. On 
> receiving the
> code, I extract the css links and add them to the head of the document since
> all <link>s and <style> sections are supposed to be in the <head> according
> to the W3C.
>
> All the browsers I have tried this on (Konqueror, Firefox, IE6, Opera 
> and Epiphany)
> all successfully render the code with the css applied.
>
> If the component is replaced with a different one, its css is removed 
> from the
> document and the css applying to the new component is added to the head
> instead. The css is removed using removeChild after finding the css link
> by its id.
>
> This works fine on all the browsers except Konqueror which continues to
> apply the css from the first component as well as the css from the new one.
> It is as though Konqueror removes the link but doesn't also remove the
> css rules applied.
>
> Is there a workaround to this? Or is this a problem with Konqueror and if
> so does anyone know if there is already a bug already filed related to 
> it, and
> if not, where I should raise the bug?
>
> Thanks for any help, pointers, in advance :-)
>
> Regards
>
> Neill Jones
>
> 	
> 	
> 		
> ___________________________________________________________ 
> All new Yahoo! Mail "The new Interface is stunning in its simplicity and ease of use." - PC Magazine 
> http://uk.docs.yahoo.com/nowyoucan.html
>
>
> ------------------------------
> Le Samedi 27 Janvier 2007 19:41, Neill Jones a ?crit :
>   
>> Is there a workaround to this? Or is this a problem with Konqueror and if
>> so does anyone know if there is already a bug already filed related to
>> it, and
>> if not, where I should raise the bug?
>>     
>
> I don't think such a bug as already been filed so yes, please, file one if you 
> can (http://bugs.kde.org), that would be great. 
> Also attaching a simple testcase to a bug report is practically the only way 
> to get a bug timely fixed.
>
> As for a work around, yes there probably is... we'll definetly need a testcase 
> to determine that though :)
>
> Thanks,
> Germain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20070129/bc5ff437/attachment.htm>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20070129/bc5ff437/attachment.html>


More information about the kfm-devel mailing list