Bug 198103 - proper handling of unexpected end of string [CSS 2.1 conformance ]
Summary: proper handling of unexpected end of string [CSS 2.1 conformance ]
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: khtml parsing (show other bugs)
Version: 4.7.3
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konqueror Developers
URL: http://www.gtalbot.org/BrowserBugsSec...
Keywords: reproducible, testcase, triaged
Depends on:
Blocks:
 
Reported: 2009-06-28 00:13 UTC by Gérard Talbot (no longer involved)
Modified: 2024-05-06 20:48 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gérard Talbot (no longer involved) 2009-06-28 00:13:49 UTC
Version:            (using KDE 4.2.4)
OS:                Linux
Installed from:    Ubuntu Packages

Testcase from Gabriele Romanato
--------

http://test.csswg.org/source/CSS2.1-test-suite/incoming/gabriele/basic/sec4/parsingerror5.html

Relevant code involved:
----------------------

<style type="text/css">
p {color: green}
p {font-family: "Andale Mono, Courier, monospace; color: red}

</style>

<p>This text should be green, not red.</p>



"User agents must close strings upon reaching the end of a line, but then drop the construct (declaration or rule) in which the string was found."
http://www.w3.org/TR/CSS21/syndata.html#parsing-errors

Internet Explorer 8, Firefox 3.0.11, Opera 9.64 and Safari 4 pass this test.

regards, Gérard
Comment 1 A. Spehr 2009-06-28 01:05:45 UTC

*** This bug has been marked as a duplicate of bug 198096 ***
Comment 2 A. Spehr 2009-06-28 12:31:28 UTC
Opps... Related, not a dup.
Comment 3 Gérard Talbot (no longer involved) 2009-06-30 07:43:36 UTC
Correction: Safari 4 for Windows does not pass this test.
Comment 4 Gérard Talbot (no longer involved) 2009-09-30 07:05:54 UTC
Original testcase from Gabriele Romanato is now at:

http://test.csswg.org/source/contributors/gabriele/incoming/basic/sec4/parsingerror5.html

regards, Gérard
Comment 5 Gérard Talbot (no longer involved) 2014-06-04 17:19:54 UTC
Temporary URL:
http://test.csswg.org/source/work-in-progress/gabriele/basic/sec4/parsingerror5.html
Comment 6 Gérard Talbot (no longer involved) 2014-06-12 17:17:30 UTC
Permanent url:
http://www.gtalbot.org/BrowserBugsSection/Konqueror4Bugs/Bug198103-handling-unexpected-end-string.html
Comment 7 Christoph Cullmann 2024-05-06 20:48:55 UTC
Dear user,

KHTML (and KJS) was a long time more or less unmaintained and got removed in KF6.

Please migrate to use a QWebEngine based HTML component.

We will do no further fixes or improvements to the KF5 branches of these components beside important security fixes.

For security issues, please see:

https://kde.org/info/security/

Sorry that we did not fix this issue during the life-time of KHTML.

Greetings
Christoph Cullmann