Bug 72587

Summary: [test case] text is colored incorrectly in some (broken) HTML pages
Product: [Applications] konqueror Reporter: M <mru>
Component: khtml parsingAssignee: Konqueror Developers <konq-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: NOR    
Version: 4.0   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Illustration of the coloring bug.

Description M 2004-01-14 00:32:31 UTC
Version:           4.0 (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.4 20031210 (experimental)
OS:          Linux (i686) release 2.6.1

Text is rendered the wrong color after certain incorrect tag combinations.  3.1.2 does the right thing.  Example: http://www.opensource.org/halloween/halloween1.php  The problem seems to be caused by incorrectly overlapping tags.
Comment 1 Stephan Kulow 2004-01-14 10:47:02 UTC
Can you try to reduce the HTML to it's minimum?
Comment 2 M 2004-01-14 12:10:55 UTC
Created attachment 4156 [details]
Illustration of the coloring bug.

The text in this file is colored incorrectly, all green.
Comment 3 M 2004-01-14 12:11:56 UTC
The problem is caused by a <p> tag inside a <font> region.  I've attached an example.  It's possible that other combinations could cause similar things, of course.  Note that this is invalid HTML.
Comment 4 Stephan Kulow 2004-01-14 13:14:59 UTC
thanks for the analysis. That's a known regression actually

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