Fix Firefox tests

* Firefox only validates elements appended to the document
* Firefox doesn't validate number elements and the related (rangeOverflow and
rangeUnderflow) and steps
* TODO: review NS_ERROR for tests that contains document.execCommand