| Summary: | Konqueror errorneously interpretes CSS comment as HTML one | ||
|---|---|---|---|
| Product: | [Applications] konqueror | Reporter: | Candid Dauth <cdauth+bugs.kde.org> |
| Component: | khtml parsing | Assignee: | Konqueror Bugs <konqueror-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Testcase that shows the bug. | ||
|
Description
Candid Dauth
2005-08-16 22:46:07 UTC
Created attachment 12242 [details]
Testcase that shows the bug.
<!-- [something] --> is an SGML comment and is valid in XML.
So, for Konqueror, your page is:
<style type="text/css">
</script>
<style type="text/css">
body { background-color:#0f0; }
</style>
So, it's completely wrong. The Konqueror parsing is correct.
> <!-- [something] --> is an SGML comment and is valid in XML.
In XML it would be, but in this case it’s HTML. According to the HTML DTD, both <style> and <script> contain #PCDATA, which means that HTML code inside them may not be interpreted. The #PCDATA block is closed by “</”, so the comment shouldn’t be interpreted like a comment but like PCDATA.
|