<?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: Painless DOM building with mkup</title>
	<atom:link href="http://www.agimatec.de/blog/2009/09/painless-dom-building-with-mkup/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.agimatec.de/blog/2009/09/painless-dom-building-with-mkup/</link>
	<description>Clash of realities</description>
	<lastBuildDate>Fri, 04 Jun 2010 01:40:54 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Sebastian Schuth</title>
		<link>http://www.agimatec.de/blog/2009/09/painless-dom-building-with-mkup/comment-page-1/#comment-480</link>
		<dc:creator>Sebastian Schuth</dc:creator>
		<pubDate>Wed, 23 Sep 2009 09:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=650#comment-480</guid>
		<description>Well yes, just use &lt;code&gt;innerHTML&lt;/code&gt; and you don&#039;t even need to use jQuery anymore :-)

There are at least two points that come to my mind that jQuery&#039;s &lt;code&gt;html()&lt;/code&gt; function does not:
&lt;ol&gt;
	&lt;li&gt;give you the ability to get hold of created elements &lt;b&gt;without&lt;/b&gt; using a selector on the just created nodes&lt;/li&gt;
	&lt;li&gt;provide a way to create nodes without having to add big chunks of html strings onto your code&lt;/li&gt;
&lt;/ol&gt;



I see that it is pointless to use mkup when &lt;code&gt;innerHTML&lt;/code&gt; does the job, but mkup does more than just creating nodes.

So thank you for pointing out that using mkup without needing what is does is pointless :-)</description>
		<content:encoded><![CDATA[<p>Well yes, just use <code>innerHTML</code> and you don&#8217;t even need to use jQuery anymore :-)</p>
<p>There are at least two points that come to my mind that jQuery&#8217;s <code>html()</code> function does not:</p>
<ol>
<li>give you the ability to get hold of created elements <b>without</b> using a selector on the just created nodes</li>
<li>provide a way to create nodes without having to add big chunks of html strings onto your code</li>
</ol>
<p>I see that it is pointless to use mkup when <code>innerHTML</code> does the job, but mkup does more than just creating nodes.</p>
<p>So thank you for pointing out that using mkup without needing what is does is pointless :-)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Tiffert</title>
		<link>http://www.agimatec.de/blog/2009/09/painless-dom-building-with-mkup/comment-page-1/#comment-479</link>
		<dc:creator>Simon Tiffert</dc:creator>
		<pubDate>Wed, 23 Sep 2009 09:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=650#comment-479</guid>
		<description>The key point for me are the references to the elements. Yes you can also use innerHTML and build everything as string, but how to register listeners to inner elements. Assign everything an id and reparse the DOM doesn&#039;t feel right.

With mkup you get the references to every element you like inside your created DOM tree. This removes long cascades of &quot;new Element()&quot; and &quot;appendChild()&quot;.

jQuerys html() is just a kind of wrapper of innerHTML isn&#039;t it?</description>
		<content:encoded><![CDATA[<p>The key point for me are the references to the elements. Yes you can also use innerHTML and build everything as string, but how to register listeners to inner elements. Assign everything an id and reparse the DOM doesn&#8217;t feel right.</p>
<p>With mkup you get the references to every element you like inside your created DOM tree. This removes long cascades of &#8220;new Element()&#8221; and &#8220;appendChild()&#8221;.</p>
<p>jQuerys html() is just a kind of wrapper of innerHTML isn&#8217;t it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Random User</title>
		<link>http://www.agimatec.de/blog/2009/09/painless-dom-building-with-mkup/comment-page-1/#comment-478</link>
		<dc:creator>Random User</dc:creator>
		<pubDate>Mon, 21 Sep 2009 16:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.agimatec.de/blog/?p=650#comment-478</guid>
		<description>How about, it&#039;s only one line &amp; I don&#039;t need your lib:

&lt;code&gt;
$(&#039;results&#039;).html(&#039;&lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Link&lt;/a&gt;&#039;);
&lt;/code&gt;

It&#039;s pretty sad to see libraries created around things as pointless as this. Really, come on.</description>
		<content:encoded><![CDATA[<p>How about, it&#8217;s only one line &amp; I don&#8217;t need your lib:</p>
<p><code><br />
$('results').html('<a href="#" rel="nofollow">Link</a>');<br />
</code></p>
<p>It&#8217;s pretty sad to see libraries created around things as pointless as this. Really, come on.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
