Bug 67834

Summary: unexpected handling of multiple <font> tags
Product: [Applications] konqueror Reporter: David Chester <davidchester>
Component: khtmlAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Chester 2003-11-10 23:46:10 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

I am using the Orth debs of CVS HEAD available from hobbiton.opendoorsoftware.com.

Starting with the November 3, 2003 build, konqueror sometimes displays sections of text using the wrong font.  For example, on salon.com, the "From the wires" column displays in Arial instead of Verdana.  The HTML for that section of code begins like this:

<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<font face="Verdana, Arial, Helvetica, sans-serif" size="2">
<p><br />
<p><img src="http://images.salon.com/src/arrow.gif" width=8 height=7 border=0 alt="."><b><a href="/wire/index.html">From the wires</a></b></p>
<p><a href="/news/wire/2003/11/10/supreme_court/index.html">Supreme Court to hear Guantanamo appeals</a><p>
<a href="/ent/wire/2003/11/10/reagans/index.html">CBS denies pressure led to axing of "Reagans"</a><p>  

It seems that the redundant font element is causing the problem, as this test code confirms:

<font face="Verdana, Arial" size="2">
This text appears in Verdana, as expected.
</font>
<p>
<font face="Verdana, Arial" size="2">
<font face="Verdana, Arial" size="2">
This text appears in Arial, clearly not what was intended.
</font></font>

While the redundant font elements may not be in good form, this used to be handled correctly by khtml; and mozilla and IE display as expected.  If I recall correctly, this all was not an issue in the October 20 builds.
Comment 1 Paul Sprakes 2003-11-11 00:18:54 UTC
This looks like another manifestation of bug #67768
Comment 2 Stephan Kulow 2003-11-24 11:44:11 UTC

*** This bug has been marked as a duplicate of 67768 ***