Raynos/DOM-shim — Issue #40: Fix bug in Opera 12 and FF 10 with document.createTreeWalker
Author: termi1uc1
Created: 2012-01-27 11:09:36+00:00
State: open

http://www.w3.org/TR/domcore/#dom-document-createtreewalker
Opera 12.00.1213 and FF 10.0 needs 3rd and 4th argument:

//filter and entityExpandBol can't be undefined
document.createTreeWalker(root, nodesToShow, filter, entityExpandBol);

DOM4 spec says what filter is an optional "argument" and "entityExpandBol" argument not in DOM4 spec anymore

//this is valid
document.createTreeWalker(document.body, NodeFilter.ALL)