Closed
Bug 670009
Opened 14 years ago
Closed 14 years ago
xhtml css elements must be upper case
Categories
(Firefox :: General, defect)
Tracking
()
VERIFIED
INVALID
People
(Reporter: jmichae3, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Build ID: 20110615151330
Steps to reproduce:
http://JesusnJim.com/z/xhtml-css-uc-element-name-test-and-css-comment-test.xhtml
http://JesusnJim.com/z/xhtml-css-uc-element-name-test.xhtml
tried these tests with DIV css element name in upper case.
Actual results:
div tag content that should be red is not red. server is set up to properly serve up xhtml. DIV css is not accepted but div is. css is not supposed to be case sensitive I am told. but in ff 5.0 it only accepts lower case. not so in other browsers.
Expected results:
should have showed red text where it says "this should be red" and accepted the DIV element name css for the div element.
Comment 1•14 years ago
|
||
CSS matching is case sensitive with regard to element and attribute matching in xhtml: http://www.w3.org/TR/css3-selectors/#casesens
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
Comment 2•14 years ago
|
||
And in XML, the comment in the first test is actually honoured, and everything inside it is ignored.
Status: RESOLVED → VERIFIED
Reporter | ||
Comment 3•14 years ago
|
||
why are you mentioning XML? this is XHTML.
Reporter | ||
Comment 4•14 years ago
|
||
I read what was said about comments in bug 670019.
these 2 bugs revolve around each other's code. It was originally one file that went awry.
so what you are saying is that since XHTML is case-sensive and is lower-case, whereas HTML is not case-sensitive, XHTML's CSS elements must be lower case whereas it doesn't matter with HTML.
so what I understand now, the other browsers are simply being sloppy, they are not following the w3c/whatwg specification.
You need to log in
before you can comment on or make changes to this bug.
Description
•