![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
what does it mean when a style tag gives something like the following? style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/style/monobook/main.css"; /*]]>*/</style is this standard? |
#3
| |||
| |||
|
|
"Xah Lee" <xah (AT) xahlee (DOT) org> wrote: what does it mean when a style tag gives something like the following? style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/style/monobook/main.css"; /*]]>*/</style is this standard? Something like that is required for XHTML served as XHTML, |
|
but afaik the syntax used there is wrong, see http://www.hixie.ch/advocacy/xhtml |
#4
| |||
| |||
|
|
what does it mean when a style tag gives something like the following? style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/style/monobook/main.css"; /*]]>*/</style is this standard? Something like that is required for XHTML served as XHTML, style type="text/css" media="screen,projection" @import "/style/monobook/main.css"; /style would be better, surely, even for XHTML as XHTML? Personally I'd rather use that [1] and risk breaking the page slightly in Netscape 1 and earlier (as if XHTML and half of HTML 4 wouldn't confuse them enough), than have the unreadable and unmemorable nested comment that the various specifications require between them. but afaik the syntax used there is wrong, see http://www.hixie.ch/advocacy/xhtml Indeed. It's not just decade-old cargo cult baggage, it wouldn't even have worked properly in the few browsers it was necessary for. |
#5
| |||
| |||
|
|
what does it mean when a style tag gives something like the following? style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/style/monobook/main.css"; /*]]>*/</style is this standard? Xah xah (AT) xahlee (DOT) org ∑ http://xahlee.org/ |
#6
| |||
| |||
|
|
I think that you are confusing the quoted CDATA construct with the old |
#7
| |||
| |||
|
|
Xah Lee wrote: what does it mean when a style tag gives something like the following? style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/style/monobook/main.css"; /*]]>*/</style is this standard? Yes, it is to mark a section as CDATA as described in XHTML 1.0 Appendix C, however, he is commenting out the CDATA marked section tags. |
#8
| |||
| |||
|
|
The CDATA construct is based on something else specific to XHTML served as such IIRC, read Hixie's article for the specifics. |
#9
| |||
| |||
|
|
Gus Richter wrote in message news:5r6dnVC2vcFfjr7eRVn-rA (AT) golden (DOT) net... Xah Lee wrote: what does it mean when a style tag gives something like the following? style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/style/monobook/main.css"; /*]]>*/</style is this standard? Yes, it is to mark a section as CDATA as described in XHTML 1.0 Appendix C, however, he is commenting out the CDATA marked section tags. I thought it should be like this using all the "hacks" needed for older browsers: style type="text/css" media="screen,projection"><!--/*--><![CDATA[/*><!--*/ @import "/style/monobook/main.css"; /*]]>*/--></style |
![]() |
| Thread Tools | |
| Display Modes | |
| |