Make the DOM and HTML idlharness tests more robust.
Merge pull request #351 from Ms2ger/robust-idlharness

Make the DOM and HTML idlharness tests more robust; r=jgraham