Fixes around dom/ tests for inputEncoding and case

https://github.com/whatwg/dom/commit/03e170351f095e4fe749e0259a3aafc0cbb49c91