December 11th, 2003, 05:11 AM
xhtml, custom tags, and css
The above code works perfectly well in Mozilla as long as it is served as 'application/xhtml+xml' as the mime type.
<!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Strict//EN"
border: 1px solid black;
<mytag> Hello </mytag>
IE, however does not understand this mime type and can't open the file. But, sent as 'text/html', neither broser applies the style.
My question is: Does IE even have the ability to do what I'm trying to do. Can you pull off custom tags in IE without XSL or preprossessing it on the server first?
December 11th, 2003, 12:37 PM
If you have a custom tag, you do not have an xhtml document. Hence you (probably?) shouldn't be serving it as "application/xhtml+xml". Even if it was valid xhtml, Iwouldn't serve it as that mime type since Explorer is too dumb to figure it out.
What your document really is is "text/xml", since you can't really use the above type. You should change your mime-type, doctype, and xml name space accordingly. To be hontest though, I'm not sure how you would then use embedded html-like styles. Perhaps serving it as "text/html" would work...I serve some of my xhtml that way. I know you shouldn't, but there reallly isn't an alternative as long as Explorer continues to ignore the public standards and they have a 90% market share.
Last edited by MJEggertson; December 11th, 2003 at 12:40 PM.