A small DOM subset that emulates just enough to run Rule.js