Closed
Bug 276293
Opened 20 years ago
Closed 20 years ago
style sheets not used when page content type is application/xhtml+xml
Categories
(SeaMonkey :: General, defect)
Tracking
(Not tracked)
VERIFIED
INVALID
People
(Reporter: csacco, Unassigned)
Details
Attachments
(1 file)
|
1.77 KB,
application/octet-stream
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041217
while developing an in-house document system i wanted to use xhtml strict for
xml compliance (using php). when embedding the content type of
"application/xhtml+xml" for the script (recommended from w3c xhtml media types)
stylesheets embedded with the <link> attribute do not get processed. the
workaround is to use "text/html" which is deprecated for xhtml.
Reproducible: Always
Steps to Reproduce:
may need to write a php script with the following line:
header("Content-type: application/xhtml+xml");
use an external css document
<link rel="stylesheet" media="screen" type="text/css" href="default.css" />
Actual Results:
stylesheet does not get processed
Expected Results:
stylesheet would have rendered the content in the document. this should be
corrected to maintain XHTML compliance. Although the workaround is acceptable at
the moment, the new mime type should be facilitated throughout mozilla
XHTML Media Types:
http://www.w3.org/TR/2002/NOTE-xhtml-media-types-20020801| Reporter | ||
Comment 1•20 years ago
|
||
using mozilla 1.7.5
| Reporter | ||
Comment 3•20 years ago
|
||
no mate - javascript console does not display anything
| Reporter | ||
Comment 4•20 years ago
|
||
changing the line
header("Content-type: application/xhtml+xml");
to
header("Content-type: text/html");
is a workaround, but it is a deprecated mimetype for XHTML 1.0| Reporter | ||
Comment 5•20 years ago
|
||
This file contains four files: default.css - the stylesheet document default.js - the javascript document (currently empty) testfile.xhtml - the xhtml script with application/xhtml+xml encoding testfile.html - the xhtml script with text/html encoding
Comment 6•20 years ago
|
||
It doesn't work in the .xhtml file because you have all the HTML selectors written in uppercase. That means they don't match the lowercase XHTML code. Case matters. See http://www.w3.org/TR/xhtml1/#C_13
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
| Reporter | ||
Comment 7•20 years ago
|
||
thats correct - it is common in css to write the element name in upper case. i tried to open these files in m$ie - the behaviour is much worse: it displays the xml tree!!! may contact micro$oft to improve their web browser
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•