extract detects found in the html5shiv code

I had a use case where I wanted to know whether or not the HTML5 Shiv was needed.

Thankfully, the upstream code is very easy to read and already attempts to avoid as much work as possible. :)

Q: how should we organise detects that test global attribute support? I just threw the `hidden` detect in the `dom` section. /shrug