Closed
Bug 361051
Opened 19 years ago
Closed 19 years ago
c++ comments respected in CSS
Categories
(Core :: CSS Parsing and Computation, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: chris.eveleigh, Assigned: dbaron)
References
()
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.7) Gecko/20060913 Fedora/1.5.0.7-1.fc5 Firefox/1.5.0.7 pango-text
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.0.7) Gecko/20060913 Fedora/1.5.0.7-1.fc5 Firefox/1.5.0.7 pango-text
if you use the c++ comment "//" in CSS then firefox/seamonkey accepts that as a comment and ignores the rest of the line.
this appears to be outside of any CSS spec i can find and also entirely undocumented.
Reproducible: Always
Steps to Reproduce:
1.have a look at the URL
2.have a look at the source
3.have a look at the results
Actual Results:
got a red box.
Expected Results:
get a blue box.
i tried this is this version of firefox and seamonkey.
Comment 1•19 years ago
|
||
If you look closely enough, you'll note that it's not ignoring the whole line but only the background color related rule (otherwise the text would be yellow and not white). A look into the Error Console confirms:
Warning: Expected declaration but found '/'. Skipped to next declaration.
Source file: https://support.planningportal.gov.uk/css-comment-test.html
Line: 8
You happen to have encountered rather a parsing bug in IE. BTW: Opera and Safari both render the page as Firefox does...
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 2•19 years ago
|
||
okay. thanks for pointing this out.
should there be some indication on the screen that an error has been seen? i wasn't aware of this 'error console'. (i've found it in seamonkey now - i guess it's an extension in ff. 3 errors and 3 warnings, apparently!)
so, uh, where do i go to report IE bugs? ;-)
You need to log in
before you can comment on or make changes to this bug.
Description
•