<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Silly Kat's Daydream &#187; html</title>
	<atom:link href="http://www.sandykatkat.com/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sandykatkat.com</link>
	<description>Blog of Silly Kat's random ramble</description>
	<lastBuildDate>Wed, 25 Aug 2010 02:10:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Random discovery of the day</title>
		<link>http://www.sandykatkat.com/2007/03/random-discovery-of-the-day/</link>
		<comments>http://www.sandykatkat.com/2007/03/random-discovery-of-the-day/#comments</comments>
		<pubDate>Thu, 15 Mar 2007 01:24:15 +0000</pubDate>
		<dc:creator>sleepikatkat</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.sandykatkat.com/2007/03/random-discovery-of-the-day/</guid>
		<description><![CDATA[Actually, it didn&#8217;t happen today. It was something that I found maybe a week ago, some oddity I thought, or maybe I was just being ignorant. One of the tasks I have been doing for my project is to make a web site XHTML strict compliant. Well, the site was designed ages ago when it [...]]]></description>
			<content:encoded><![CDATA[<p>Actually, it didn&#8217;t happen today. It was something that I found maybe a week ago, some oddity I thought, or maybe I was just being ignorant.</p>
<p>One of the tasks I have been doing for my project is to make a web site XHTML strict compliant. Well, the site was designed ages ago when it was probably still HTML 3.2 time.  There used to have no DTD and the browsers rendered the site just fine. Now by just adding that one line of DTD declaring all pages to the XHMTL strict, we are doomed. None of the pages could be validated. *sigh.</p>
<p>Among everything we had attributes that are no longer supported in HTML 4.01, such as &#8220;target&#8221; attribute in <code>&lt;a href&gt;</code> tag, and attribute &#8220;name&#8221; in <code>&lt;form&gt;</code> tag. But almost all forms use &#8220;name&#8221; attribute! And inline+external JavaScripts depend on that!!  Oh lord&#8230;</p>
<p>Luckily help is always somewhere online if one is willing to dig and dig and dig. I followed <a href="http://www.sitepoint.com/article/standards-compliant-world" title="New window link in standards-compliant world" target="_blank">this</a> tutorial by Kevin Yank to resolve all <code>&lt;a target&gt;</code> issues.  Apparently that solution was out there for ages; I just didn&#8217;t know. =) That was nice and easy.  <code>&lt;form name&gt;</code> issue was resolved by substituting &#8220;name&#8221; to &#8220;id&#8221;.  I just had to remember all references to it in JavaScript.</p>
<p>One that that tripped me was the <code>&lt;tfoot&gt;</code> tag.  The pages had a lot of data presented in tables. <code>&lt;tfoot&gt;</code> was introduced when we separated CSS from all pages.  But browser validation always complains about it. It looked right to me. =\  I dig deeper into the World Wide Web begging for some clue. Eventually I found out that <code>&lt;tfoot&gt;</code> has to be declared before <code>&lt;tbody&gt;</code>. So the order should be <code>&lt;table&gt;&lt;thead&gt;&lt;/thead&gt;&lt;tfoot&gt;&lt;/tfoot&gt;&lt;tbody&gt;&lt;/tbody&gt;&lt;/table&gt;</code>. What dah? It still doesn&#8217;t make sense to me. But oh well, as long as it validates&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sandykatkat.com/2007/03/random-discovery-of-the-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.265 seconds -->
