<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/DOM</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 06 Sep 2008 16:53:37 GMT</pubDate>
<item>
<title>(JavaScript) DOM Traversal - wizard04</title>
<link>http://snipplr.com/view/8212/dom-traversal/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 05 Sep 2008 14:14:37 GMT</pubDate>
<guid>http://snipplr.com/view/8212/dom-traversal/</guid>
</item>
<item>
<title>(Ruby) Rendered WGet with Selenium - noah</title>
<link>http://snipplr.com/view/7906/rendered-wget-with-selenium/</link>
<description><![CDATA[ <p>Created in response to a discussion about "ghosting," between Kord Campbell of Splunk and Christian Heilman of Yahoo! at Ajax World 2008.

IMPORTANT: The Selenium-RC server must be running on port 4444 (the default) and you must have Curl and Tidy installed on your system.   

NOTE: Diffing the rendered versus the "server" source.  This option works OK as a learning tool, but I need to do more in terms of normalizing the server source versus the rendered source.  I run both the "server" and innerHTML sources through Tidy, but unfortunately there still seems to be a lot of extraneous differences between them.

So while this works OK for downloading the rendered source via a Ruby script, I've got a ways to go before it can produce a reliable "rendered diff."</p> ]]></description>
<pubDate>Mon, 18 Aug 2008 09:23:43 GMT</pubDate>
<guid>http://snipplr.com/view/7906/rendered-wget-with-selenium/</guid>
</item>
<item>
<title>(JavaScript) DOM node types - wizard04</title>
<link>http://snipplr.com/view/7898/dom-node-types/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sun, 17 Aug 2008 15:51:18 GMT</pubDate>
<guid>http://snipplr.com/view/7898/dom-node-types/</guid>
</item>
<item>
<title>(JavaScript) Appending fragments to the DOM instead of every node. - iTony</title>
<link>http://snipplr.com/view/7421/appending-fragments-to-the-dom-instead-of-every-node/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 21 Jul 2008 17:55:30 GMT</pubDate>
<guid>http://snipplr.com/view/7421/appending-fragments-to-the-dom-instead-of-every-node/</guid>
</item>
<item>
<title>(JavaScript) getElementsByAttr - kcmr</title>
<link>http://snipplr.com/view/7239/getelementsbyattr/</link>
<description><![CDATA[ <p>Use sample:
var inputTxt = getElementsByAttr('input', 'type', 'text');</p> ]]></description>
<pubDate>Sat, 12 Jul 2008 08:06:54 GMT</pubDate>
<guid>http://snipplr.com/view/7239/getelementsbyattr/</guid>
</item>
<item>
<title>(JavaScript) JavaScript DOM Element Visibility Checker - TALlama</title>
<link>http://snipplr.com/view/7215/javascript-dom-element-visibility-checker/</link>
<description><![CDATA[ <p>Determines if a given element is visible, by checking a variety of things. Will work for CSS or inline style declarations of visible:hidden or display: none. Will check if it's inside of an invisible element, as well.</p> ]]></description>
<pubDate>Thu, 10 Jul 2008 13:54:18 GMT</pubDate>
<guid>http://snipplr.com/view/7215/javascript-dom-element-visibility-checker/</guid>
</item>
<item>
<title>(JavaScript) List all class names used in a DOM tree - noah</title>
<link>http://snipplr.com/view/6488/list-all-class-names-used-in-a-dom-tree/</link>
<description><![CDATA[ <p>Lists each CSS class name that is applied to an element within an HTML page.

Some applications suggested by this pattern are:
- List class names by frequency of use.
- List class names by what kind of element they are applied to.
- List class names that are only used once.</p> ]]></description>
<pubDate>Wed, 28 May 2008 17:31:41 GMT</pubDate>
<guid>http://snipplr.com/view/6488/list-all-class-names-used-in-a-dom-tree/</guid>
</item>
<item>
<title>(JavaScript) Find Verbose IDs in the DOM - noah</title>
<link>http://snipplr.com/view/6474/find-verbose-ids-in-the-dom/</link>
<description><![CDATA[ <p>Traverses the DOM tree and reports if any IDs are over 30 characters in length.  Doesn't check for doubled IDs because that's caught when validationg the HTML.</p> ]]></description>
<pubDate>Tue, 27 May 2008 17:08:12 GMT</pubDate>
<guid>http://snipplr.com/view/6474/find-verbose-ids-in-the-dom/</guid>
</item>
<item>
<title>(JavaScript) domready.js - ishikawa</title>
<link>http://snipplr.com/view/6029/domreadyjs/</link>
<description><![CDATA[ <p>This is a pretty simple example for cross browser dom:ready event handling inspired by mootools.</p> ]]></description>
<pubDate>Mon, 28 Apr 2008 08:14:33 GMT</pubDate>
<guid>http://snipplr.com/view/6029/domreadyjs/</guid>
</item>
<item>
<title>(JavaScript) outerHTML in Firefox - localhorst</title>
<link>http://snipplr.com/view/5460/outerhtml-in-firefox/</link>
<description><![CDATA[ <p>This is a little trick I came up with to add outerHTML functionality in Firefox. For those who aren't familiar with outerHTML, it is an IE addition to the DOM that will return the element's HTML PLUS it's innerHTML. Is it really needed? No, but it can help with debugging sometimes.</p> ]]></description>
<pubDate>Mon, 17 Mar 2008 12:26:21 GMT</pubDate>
<guid>http://snipplr.com/view/5460/outerhtml-in-firefox/</guid>
</item>
<item>
<title>(JavaScript) get() function for easy DOM access - jatkins</title>
<link>http://snipplr.com/view/5175/get-function-for-easy-dom-access/</link>
<description><![CDATA[ <p>Saves you calling document.getElementById() every time to want to access an element.</p> ]]></description>
<pubDate>Sun, 24 Feb 2008 12:17:01 GMT</pubDate>
<guid>http://snipplr.com/view/5175/get-function-for-easy-dom-access/</guid>
</item>
<item>
<title>(HTML) Add and Remove Elements with JavaScript (reprise) - LeeRJohnson</title>
<link>http://snipplr.com/view/5025/add-and-remove-elements-with-javascript-reprise/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 12 Feb 2008 15:21:30 GMT</pubDate>
<guid>http://snipplr.com/view/5025/add-and-remove-elements-with-javascript-reprise/</guid>
</item>
<item>
<title>(JavaScript) Add and Remove Elements with JavaScript - marcio</title>
<link>http://snipplr.com/view/4754/add-and-remove-elements-with-javascript/</link>
<description><![CDATA[ <p>Manera increiblemente facil y eficiente de añadir eventos y añadir/borrar nodos</p> ]]></description>
<pubDate>Thu, 24 Jan 2008 01:44:49 GMT</pubDate>
<guid>http://snipplr.com/view/4754/add-and-remove-elements-with-javascript/</guid>
</item>
<item>
<title>(JavaScript) scroll to top - JavaScript - multani</title>
<link>http://snipplr.com/view/4603/scroll-to-top--javascript/</link>
<description><![CDATA[ <p>This script can help you control the scroll of div by a simple function.
Set thr property 'scrollTop' then the scoll can be controlled.</p> ]]></description>
<pubDate>Tue, 15 Jan 2008 22:38:18 GMT</pubDate>
<guid>http://snipplr.com/view/4603/scroll-to-top--javascript/</guid>
</item>
<item>
<title>(JavaScript) Image Rollover (DOM) - Hanek</title>
<link>http://snipplr.com/view/4252/image-rollover-dom/</link>
<description><![CDATA[ <p>Oh so sweet. A big thanks to Chris Poole for this one.</p> ]]></description>
<pubDate>Mon, 03 Dec 2007 04:21:22 GMT</pubDate>
<guid>http://snipplr.com/view/4252/image-rollover-dom/</guid>
</item>
<item>
<title>(JavaScript) jitScript - safe append javascript with registry handler. prevent duplicated - ChaosKaizer</title>
<link>http://snipplr.com/view/4180/jitscript--safe-append-javascript-with-registry-handler-prevent-duplicated/</link>
<description><![CDATA[ <p>var lib = ['foo.js','foo.js','foo2.js','foo.js','foo333.js','foo2.js'];
var slib = 'fooooo.js';

lib.jitScript(); // append foo.js, foo2.js &amp; foo33.js
slib.jitScript(); // append fooooo.js

enable firebug console 
JitScriptDebug = true;

validate scripts
lib.isJsLoad();</p> ]]></description>
<pubDate>Fri, 23 Nov 2007 06:26:14 GMT</pubDate>
<guid>http://snipplr.com/view/4180/jitscript--safe-append-javascript-with-registry-handler-prevent-duplicated/</guid>
</item>
<item>
<title>(JavaScript) Yahoo Page Init - LeeRJohnson</title>
<link>http://snipplr.com/view/3975/yahoo-page-init/</link>
<description><![CDATA[ <p>requires Yahoo DOM event</p> ]]></description>
<pubDate>Mon, 22 Oct 2007 10:03:25 GMT</pubDate>
<guid>http://snipplr.com/view/3975/yahoo-page-init/</guid>
</item>
<item>
<title>(JavaScript) Change element's parent - elugardo</title>
<link>http://snipplr.com/view/3586/change-elements-parent/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 28 Aug 2007 14:34:26 GMT</pubDate>
<guid>http://snipplr.com/view/3586/change-elements-parent/</guid>
</item>
<item>
<title>(PHP) Loose php dom parsing - remysharp</title>
<link>http://snipplr.com/view/3434/loose-php-dom-parsing/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 01 Aug 2007 08:45:32 GMT</pubDate>
<guid>http://snipplr.com/view/3434/loose-php-dom-parsing/</guid>
</item>
<item>
<title>(JavaScript) find ancestor - noah</title>
<link>http://snipplr.com/view/3339/find-ancestor/</link>
<description><![CDATA[ <p>find the first ancestor on which comparisonFunc evaluates to true
works the same way as a custom sort
the el specified in the pram will be the FIRST el to which comparisonFunc is applied.

this is, this function considers me to be my own first ancestor :)</p> ]]></description>
<pubDate>Fri, 20 Jul 2007 19:26:22 GMT</pubDate>
<guid>http://snipplr.com/view/3339/find-ancestor/</guid>
</item>
</channel>
</rss>