<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Clean Source vs. Clean DOM</title>
	<atom:link href="http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/</link>
	<description>...whatever goes through my head...</description>
	<pubDate>Tue, 06 Jan 2009 22:29:07 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dolphinling</title>
		<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/comment-page-1/#comment-89</link>
		<dc:creator>dolphinling</dc:creator>
		<pubDate>Wed, 13 Jul 2005 18:43:12 +0000</pubDate>
		<guid isPermaLink="false">/?p=99#comment-89</guid>
		<description>&lt;p&gt;Alessandro, there's nothing wrong with adding elements to the DOM. If you need to add a paragraph, add a paragraph. If you need to emphasize a piece of text, emphasize that piece of text. The point, though, is that like the original DOM, the new DOM must &lt;em&gt;also&lt;/em&gt; be semantic.&lt;/p&gt;
	&lt;p&gt;Javascript and the DOM weren't invented solely for "normal" browsers—if I add a paragraph to my page, I want screenreaders to read that paragraph, too. There are so many different devices that read HTML that the only way to make your documents work on all of them is to keep it entirely semantic. The same is true of scripting. If you add a bunch of &lt;code&gt;&#60;b&#62;&lt;/code&gt; elements to a page through script just for the purpose of presentation, a screenreader won't understand them. Neither will a braille device, or lynx, or &lt;em&gt;anything&lt;/em&gt; that does presentation differently than you expected.&lt;/p&gt;
	&lt;p&gt;Now, I'm not against using Javascript to change presentation (I'm going to write about that soon), but I &lt;em&gt;am&lt;/em&gt; against changing the semantics of the document to get that presentation.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Alessandro, there&#8217;s nothing wrong with adding elements to the DOM. If you need to add a paragraph, add a paragraph. If you need to emphasize a piece of text, emphasize that piece of text. The point, though, is that like the original DOM, the new DOM must <em>also</em> be semantic.</p>
<p>Javascript and the DOM weren&#8217;t invented solely for &#8220;normal&#8221; browsers—if I add a paragraph to my page, I want screenreaders to read that paragraph, too. There are so many different devices that read HTML that the only way to make your documents work on all of them is to keep it entirely semantic. The same is true of scripting. If you add a bunch of <code>&lt;b&gt;</code> elements to a page through script just for the purpose of presentation, a screenreader won&#8217;t understand them. Neither will a braille device, or lynx, or <em>anything</em> that does presentation differently than you expected.</p>
<p>Now, I&#8217;m not against using Javascript to change presentation (I&#8217;m going to write about that soon), but I <em>am</em> against changing the semantics of the document to get that presentation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro Fulciniti</title>
		<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/comment-page-1/#comment-88</link>
		<dc:creator>Alessandro Fulciniti</dc:creator>
		<pubDate>Wed, 13 Jul 2005 10:05:31 +0000</pubDate>
		<guid isPermaLink="false">/?p=99#comment-88</guid>
		<description>&lt;p&gt;Oli and Dolphin, I believe one could choose the (best, right, proper) way to use javascript. But if you choose not to add elements in the dom tree, then you should throw out of the window 90% or more of the existing scripts.&lt;/p&gt;
	&lt;p&gt;One of the reason DOM was invented I believe is to add and play with the page elements leaving the markup intact, semantical and unobtrousive&lt;/p&gt;
	&lt;p&gt;Think about it. Perhaps reading 
	&lt;a href="http://web-graphics.com/mtarchive/001568.php"&gt;this article&lt;/a&gt; will help you.&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Oli and Dolphin, I believe one could choose the (best, right, proper) way to use javascript. But if you choose not to add elements in the dom tree, then you should throw out of the window 90% or more of the existing scripts.</p>
<p>One of the reason DOM was invented I believe is to add and play with the page elements leaving the markup intact, semantical and unobtrousive</p>
<p>Think about it. Perhaps reading<br />
	<a href="http://web-graphics.com/mtarchive/001568.php">this article</a> will help you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: oli young</title>
		<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/comment-page-1/#comment-87</link>
		<dc:creator>oli young</dc:creator>
		<pubDate>Wed, 13 Jul 2005 00:07:03 +0000</pubDate>
		<guid isPermaLink="false">/?p=99#comment-87</guid>
		<description>&lt;p&gt;I'll take a clean DOM and squared corners, over 'perdy' effects and a valid, yet soupy mess. Sometimes it's worthwhile stepping back and actually evaluating whether you *really* need rounded corners, or is it worth sacrificing a little sexiness for less hassle? Chances are only 30% will notice it, and after the first 'ooh' it's all about the content ..
&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I&#8217;ll take a clean DOM and squared corners, over &#8216;perdy&#8217; effects and a valid, yet soupy mess. Sometimes it&#8217;s worthwhile stepping back and actually evaluating whether you *really* need rounded corners, or is it worth sacrificing a little sexiness for less hassle? Chances are only 30% will notice it, and after the first &#8216;ooh&#8217; it&#8217;s all about the content ..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dimitri Glazkov</title>
		<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/comment-page-1/#comment-86</link>
		<dc:creator>Dimitri Glazkov</dc:creator>
		<pubDate>Tue, 05 Jul 2005 02:21:12 +0000</pubDate>
		<guid isPermaLink="false">/?p=99#comment-86</guid>
		<description>&lt;p&gt;I am with Alessandro on this one. It is a lot cheaper, flexible, and elegant to keep your markup semantically valid and use DOM scripting to hack and "pollute" DOM on the client-side than to generate the invalid markup on the server-side.&lt;/p&gt;
	&lt;p&gt;... with a disclaimer that this should only be done once you've exhausted all other options and these are the only two choices left on the table.&lt;/p&gt;
	&lt;p&gt;That's the whole point behind the my TILT thingamajigy.
&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>I am with Alessandro on this one. It is a lot cheaper, flexible, and elegant to keep your markup semantically valid and use DOM scripting to hack and &#8220;pollute&#8221; DOM on the client-side than to generate the invalid markup on the server-side.</p>
<p>&#8230; with a disclaimer that this should only be done once you&#8217;ve exhausted all other options and these are the only two choices left on the table.</p>
<p>That&#8217;s the whole point behind the my TILT thingamajigy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alessandro Fulciniti</title>
		<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/comment-page-1/#comment-84</link>
		<dc:creator>Alessandro Fulciniti</dc:creator>
		<pubDate>Sun, 03 Jul 2005 19:53:02 +0000</pubDate>
		<guid isPermaLink="false">/?p=99#comment-84</guid>
		<description>&lt;p&gt;Hi, just a quick answer. In my humble opinion, it's better to have the html clean instead of a markup mess (such as tables or six nested divs like someone do..) and adding the elements via DOM to get rounded corners. Nifty Corners are at the moment the cleaner way to get rounded corners without extra markup, especially on fluid boxes.&lt;/p&gt;
	&lt;p&gt;If we can't use the DOM to add unsemantical, and most of all empty and meaningless elements that doesn't affect accessibility nor content, then we just have to sit and wait about 5 years for CSS3 to come...
&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Hi, just a quick answer. In my humble opinion, it&#8217;s better to have the html clean instead of a markup mess (such as tables or six nested divs like someone do..) and adding the elements via DOM to get rounded corners. Nifty Corners are at the moment the cleaner way to get rounded corners without extra markup, especially on fluid boxes.</p>
<p>If we can&#8217;t use the DOM to add unsemantical, and most of all empty and meaningless elements that doesn&#8217;t affect accessibility nor content, then we just have to sit and wait about 5 years for CSS3 to come&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jimmy Cerra</title>
		<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/comment-page-1/#comment-76</link>
		<dc:creator>Jimmy Cerra</dc:creator>
		<pubDate>Fri, 01 Jul 2005 15:48:29 +0000</pubDate>
		<guid isPermaLink="false">/?p=99#comment-76</guid>
		<description>&lt;p&gt;You must really hate this &lt;a href="http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm"&gt;JavaScript VectorGraphics library&lt;/a&gt; then.  :-p
&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>You must really hate this <a href="http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm">JavaScript VectorGraphics library</a> then.  :-p</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terrence Wood</title>
		<link>http://blog.dolphinling.net/2005/06/clean-source-vs-clean-dom/comment-page-1/#comment-74</link>
		<dc:creator>Terrence Wood</dc:creator>
		<pubDate>Fri, 01 Jul 2005 06:13:41 +0000</pubDate>
		<guid isPermaLink="false">/?p=99#comment-74</guid>
		<description>&lt;p&gt;Funny you should use Alessandro's page as an example.&lt;/p&gt;
	&lt;p&gt;I made some comments about not messing with the source code simply to apply a visual style in relation to some of Alessandro's recommendations here: http://web-graphics.com/mtarchive/001602.php#chatty004990
&lt;/p&gt;</description>
		<content:encoded><![CDATA[<p>Funny you should use Alessandro&#8217;s page as an example.</p>
<p>I made some comments about not messing with the source code simply to apply a visual style in relation to some of Alessandro&#8217;s recommendations here: <a href="http://web-graphics.com/mtarchive/001602.php#chatty004990" rel="nofollow">http://web-graphics.com/mtarchive/001602.php#chatty004990</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
