gregersrygg/crapLoader — pull request #9 by Steffen185 (2012-10-09 14:39:21+00:00)
Title: traverseForElById: Fix for buggy DFS

The depth-first search in traverseForElById has a bug: If node A has a first child then A's siblings are never considered.

A test-case that fails without this bugfix:

document.write('

');
document.getElementById('myDIV').innerHTML = 'Works';