In nsBlocklistService.js we know we're dealing with actual nodes, so .nodeType checks should be fine.