Klaus Hartl schrieb:
> Webunity | Gilles van den Hoven schrieb:
>> I've noticed that when i add some XHTML tags like this; <br />
>> it is added as <br> even though i have the correct doctype (according to 
>> ffx).
>>
>> Anybody else seen this?
> 
> Hi Gilles,
> 
> yes, as long as you serve "XHTML" as text/html it is actually HTML with 
> these slashes where they don't belong. Doctype doesn't matter at all, 
> mime-type matters.
> 
> For HTML the recommended mime-type is "text/html", for XHTML it is 
> "application/xhtml+xml".
> 
> Here's an overview with recommendations what to use when:
> http://www.w3.org/TR/xhtml-media-types/#media-types
> 
> If you use the text/html mime-type the browser will use its html (tag 
> soup) parser for building the DOM tree.
> 
> I'm using XHTML as XML on my site for instance. Go here: 
> http://stilbuero.de, right click (with Firefox), choose "View Page Info" 
> and you will see "application/xhtml+xml" at Type.
> 
> IE doesn't support that mime-type though, that is why more and more 
> people argue XHTML is dead and switch back to HTML. Googling "XHTML as 
> XML" should give you tons of information on that topic.

I just found a comprehensive list with differences between HTML and 
XHTML: 
http://wiki.whatwg.org/wiki/HTML_vs._XHTML#Differences_Between_HTML_and_XHTML

(via http://www.lachy.id.au/log/ , also a good site to look for 
XHTML/HTML topics)


-- Klaus


-- 
Klaus

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to