<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Why XHTML</title>
	<atom:link href="http://cafe.elharo.com/web/refactoring-html/why-xhtml/feed/" rel="self" type="application/rss+xml" />
	<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/</link>
	<description>Longer than a blog; shorter than a book</description>
	<pubDate>Thu, 20 Nov 2008 23:59:20 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Pam R</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-302539</link>
		<dc:creator>Pam R</dc:creator>
		<pubDate>Tue, 14 Oct 2008 19:22:16 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-302539</guid>
		<description>Brodie Rao Says:
June 5th, 2008 at 4:58 pm

"I’m sorry, but almost none of these points are relevant. If you’re trying to make a case to vendors that XHTML is better because it’s simpler, that’s not true at all. It’s just one more technology to support - HTML is never going away. However, that doesn’t matter to web developers and authors." 

I must agree here, There is a use for both of these formats and I don't think they will ever both go away.</description>
		<content:encoded><![CDATA[<p>Brodie Rao Says:<br />
June 5th, 2008 at 4:58 pm</p>
<p>&#8220;I’m sorry, but almost none of these points are relevant. If you’re trying to make a case to vendors that XHTML is better because it’s simpler, that’s not true at all. It’s just one more technology to support - HTML is never going away. However, that doesn’t matter to web developers and authors.&#8221; </p>
<p>I must agree here, There is a use for both of these formats and I don&#8217;t think they will ever both go away.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mathiastck</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-237342</link>
		<dc:creator>mathiastck</dc:creator>
		<pubDate>Tue, 10 Jun 2008 23:41:29 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-237342</guid>
		<description>Responding to:
Anne van Kesteren
"
Igor, it shows you haven’t invested much in reading up what’s happening with mobile browsers. There’s actually very few of them which get XHTML right. Most have a forgiving HTML parser so they can render the Web. Now that we see more and more Opera and WebKit on mobile phones (and soon maybe Gecko powered too) they’ll just have the same capabilities as desktop browsers. As Ian already said, parsers are hardly the complicated bit.
"
Most phones don't have an html browser at all, but most phones support XHTML MP.  Admittedly many don't "Get it right.", there are many quirky phone browsers.  But again, most phones don't support html.</description>
		<content:encoded><![CDATA[<p>Responding to:<br />
Anne van Kesteren<br />
&#8221;<br />
Igor, it shows you haven’t invested much in reading up what’s happening with mobile browsers. There’s actually very few of them which get XHTML right. Most have a forgiving HTML parser so they can render the Web. Now that we see more and more Opera and WebKit on mobile phones (and soon maybe Gecko powered too) they’ll just have the same capabilities as desktop browsers. As Ian already said, parsers are hardly the complicated bit.<br />
&#8221;<br />
Most phones don&#8217;t have an html browser at all, but most phones support XHTML MP.  Admittedly many don&#8217;t &#8220;Get it right.&#8221;, there are many quirky phone browsers.  But again, most phones don&#8217;t support html.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliotte Rusty Harold</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236724</link>
		<dc:creator>Elliotte Rusty Harold</dc:creator>
		<pubDate>Mon, 09 Jun 2008 15:04:49 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236724</guid>
		<description>And I repeat: that this page is served as text/html does not mean it is not XHTML. It is XHTML because it is well-formed markup in the correct namespace. Except for one funky bit that's pulled in by one of the ads, it's even valid. 

The MIME type is not what one consults to determine if a page is or is not XHTML. I could label this page audio/mp3 and it would still be XHTML. Do not confuse the name or label of a thing with the thing itself.

I suggested one should publish XHTML. I did not suggest that one should label that XHTML with the MIME type application/xhtml+xml. That is your claim, not mine. </description>
		<content:encoded><![CDATA[<p>And I repeat: that this page is served as text/html does not mean it is not XHTML. It is XHTML because it is well-formed markup in the correct namespace. Except for one funky bit that&#8217;s pulled in by one of the ads, it&#8217;s even valid. </p>
<p>The MIME type is not what one consults to determine if a page is or is not XHTML. I could label this page audio/mp3 and it would still be XHTML. Do not confuse the name or label of a thing with the thing itself.</p>
<p>I suggested one should publish XHTML. I did not suggest that one should label that XHTML with the MIME type application/xhtml+xml. That is your claim, not mine.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236710</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Mon, 09 Jun 2008 14:41:49 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236710</guid>
		<description>Right, I noticed now that you are serving this page as XHTML 1.0 Transitional (that is odd by the way, why Transitional?) but it does not validate - there is an error 'document type does not allow element "style" here'. 

Clearly, the page is parsed as text/html and that's the only reason it's readable and not showing a "XML parsing error" message. So what you wrote - "Nothing significant breaks" - is true only because you're actually not using XHTML (like in serving this page as application/xhtml+xml, as it should be).</description>
		<content:encoded><![CDATA[<p>Right, I noticed now that you are serving this page as XHTML 1.0 Transitional (that is odd by the way, why Transitional?) but it does not validate - there is an error &#8216;document type does not allow element &#8220;style&#8221; here&#8217;. </p>
<p>Clearly, the page is parsed as text/html and that&#8217;s the only reason it&#8217;s readable and not showing a &#8220;XML parsing error&#8221; message. So what you wrote - &#8220;Nothing significant breaks&#8221; - is true only because you&#8217;re actually not using XHTML (like in serving this page as application/xhtml+xml, as it should be).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anne van Kesteren</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236694</link>
		<dc:creator>Anne van Kesteren</dc:creator>
		<pubDate>Mon, 09 Jun 2008 14:07:10 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236694</guid>
		<description>(Oops, seems Henri already replied. Sorry about that. Didn't think new comments might have been posted meanwhile.)</description>
		<content:encoded><![CDATA[<p>(Oops, seems Henri already replied. Sorry about that. Didn&#8217;t think new comments might have been posted meanwhile.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anne van Kesteren</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236692</link>
		<dc:creator>Anne van Kesteren</dc:creator>
		<pubDate>Mon, 09 Jun 2008 14:06:01 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236692</guid>
		<description>Brad, yes that works. http://about.validator.nu/htmlparser/ has sample applications available.</description>
		<content:encoded><![CDATA[<p>Brad, yes that works. <a href="http://about.validator.nu/htmlparser/" onclick="javascript:pageTracker._trackPageview('/outbound/comment/about.validator.nu');" rel="nofollow">http://about.validator.nu/htmlparser/</a> has sample applications available.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elliotte Rusty Harold</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236665</link>
		<dc:creator>Elliotte Rusty Harold</dc:creator>
		<pubDate>Mon, 09 Jun 2008 13:06:04 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236665</guid>
		<description>Funny, I serve XHTML off many pages (including this one) and my statistics show I get a reasonable number of visits from IE users. Clearly IE supports XHTML to some degree. (Like most questions this is not binary: the issue is how much it supports it, not whether it supports it.) 

I do recommend not using an XML declaration on XHTML pages because it causes lots of problems for older browsers. However the XML declaration is in no way required for XHTML. 

And the warning you cite simply says that there's not a strong reason to serve XHTML to Mozilla as application/xhtml+xml. If you want to just serve it to Mozilla too as text/html, go right ahead. It does say that you shouldn't serve application/xhtml+xml to Mozilla unless you're sure it's well-formed. That's reasonable. After all, if it isn't well-formed, then it isn't XHTML. But if you are maintaining well-formedness, and you feel like being pedantic, then serve application/xhtml+xml to Mozilla and text/html to IE. Nothing significant breaks.</description>
		<content:encoded><![CDATA[<p>Funny, I serve XHTML off many pages (including this one) and my statistics show I get a reasonable number of visits from IE users. Clearly IE supports XHTML to some degree. (Like most questions this is not binary: the issue is how much it supports it, not whether it supports it.) </p>
<p>I do recommend not using an XML declaration on XHTML pages because it causes lots of problems for older browsers. However the XML declaration is in no way required for XHTML. </p>
<p>And the warning you cite simply says that there&#8217;s not a strong reason to serve XHTML to Mozilla as application/xhtml+xml. If you want to just serve it to Mozilla too as text/html, go right ahead. It does say that you shouldn&#8217;t serve application/xhtml+xml to Mozilla unless you&#8217;re sure it&#8217;s well-formed. That&#8217;s reasonable. After all, if it isn&#8217;t well-formed, then it isn&#8217;t XHTML. But if you are maintaining well-formedness, and you feel like being pedantic, then serve application/xhtml+xml to Mozilla and text/html to IE. Nothing significant breaks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236525</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Mon, 09 Jun 2008 06:40:12 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236525</guid>
		<description>Elliotte,
thanks for answering. I would still argue though, because I don't agree with the statement that "text/html is just fine if it helps". I'm sorry, but it's not fine. I have to repeat myself - IE doesn't support true XHTML at all (and I wouldn't count on it supporting it in the near future).

Given that unfortunately IE still holds from 50 to 80% of the browser market (depending on the region of the world) that's an issue you can't ignore. And contrary to what you suggest, it's not ok to have a XHTML webpage and serve it as application/xml+xhtml or text/html depending on what the UA accepts. The reason for that is there are some significant differences in rendering (for instance, the XML declaration will trigger quirks mode in IE6 when served as text/html - ruining the rendering). You can read a warning against using dual-mime on &lt;a href="http://www.mozilla.org/docs/web-developer/faq.html#accept" rel="nofollow"&gt;Mozilla Web Authoring FAQ&lt;/a&gt; as well.</description>
		<content:encoded><![CDATA[<p>Elliotte,<br />
thanks for answering. I would still argue though, because I don&#8217;t agree with the statement that &#8220;text/html is just fine if it helps&#8221;. I&#8217;m sorry, but it&#8217;s not fine. I have to repeat myself - IE doesn&#8217;t support true XHTML at all (and I wouldn&#8217;t count on it supporting it in the near future).</p>
<p>Given that unfortunately IE still holds from 50 to 80% of the browser market (depending on the region of the world) that&#8217;s an issue you can&#8217;t ignore. And contrary to what you suggest, it&#8217;s not ok to have a XHTML webpage and serve it as application/xml+xhtml or text/html depending on what the UA accepts. The reason for that is there are some significant differences in rendering (for instance, the XML declaration will trigger quirks mode in IE6 when served as text/html - ruining the rendering). You can read a warning against using dual-mime on <a href="http://www.mozilla.org/docs/web-developer/faq.html#accept" onclick="javascript:pageTracker._trackPageview('/outbound/comment/www.mozilla.org');" rel="nofollow">Mozilla Web Authoring FAQ</a> as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henri Sivonen</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236497</link>
		<dc:creator>Henri Sivonen</dc:creator>
		<pubDate>Mon, 09 Jun 2008 05:33:48 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236497</guid>
		<description>Yes, you can use XSLT with HTML5. In fact, the sample code that comes with the &lt;a href="http://about.validator.nu/htmlparser/" rel="nofollow"&gt;Validator.nu HTML parser&lt;/a&gt; shows how to use XSLT on HTML5.</description>
		<content:encoded><![CDATA[<p>Yes, you can use XSLT with HTML5. In fact, the sample code that comes with the <a href="http://about.validator.nu/htmlparser/" onclick="javascript:pageTracker._trackPageview('/outbound/comment/about.validator.nu');" rel="nofollow">Validator.nu HTML parser</a> shows how to use XSLT on HTML5.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Neuberg</title>
		<link>http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236283</link>
		<dc:creator>Brad Neuberg</dc:creator>
		<pubDate>Sun, 08 Jun 2008 21:15:51 +0000</pubDate>
		<guid isPermaLink="false">http://cafe.elharo.com/web/refactoring-html/why-xhtml/#comment-236283</guid>
		<description>Quick question; I know that many XSLT parsers actually parse the XML document into an in-memory representation and then work on that representation; they aren't necessarily exposed to the XML, but rather to an abstraction of a tree. Some XSLT parsers can theoretically be passed 'anything' that can be represented as a tree, whether it was originally in XML or not at the beginning. If HTML 5 has well-defined parsing rules, and can pass you back a tree, why couldn't you apply XSLT on to that tree, or XPath for that matter? I know there will probably be issues with XML namespaces in that situation, however, but I'm sure there are solutions. 

Is this a viable option for getting the functionality of XSLT and XPath along with HTML 5? It reminds me a bit of how Firefox can apply an XPath expression on to the visible DOM, even if it is a messy HTML document since the document has already been parsed into a tree representation and the XPath can just use the nice, in-memory representation.

Best,
  Brad Neuberg</description>
		<content:encoded><![CDATA[<p>Quick question; I know that many XSLT parsers actually parse the XML document into an in-memory representation and then work on that representation; they aren&#8217;t necessarily exposed to the XML, but rather to an abstraction of a tree. Some XSLT parsers can theoretically be passed &#8216;anything&#8217; that can be represented as a tree, whether it was originally in XML or not at the beginning. If HTML 5 has well-defined parsing rules, and can pass you back a tree, why couldn&#8217;t you apply XSLT on to that tree, or XPath for that matter? I know there will probably be issues with XML namespaces in that situation, however, but I&#8217;m sure there are solutions. </p>
<p>Is this a viable option for getting the functionality of XSLT and XPath along with HTML 5? It reminds me a bit of how Firefox can apply an XPath expression on to the visible DOM, even if it is a messy HTML document since the document has already been parsed into a tree representation and the XPath can just use the nice, in-memory representation.</p>
<p>Best,<br />
  Brad Neuberg</p>
]]></content:encoded>
	</item>
</channel>
</rss>
