aFarkas/html5shiv — comment on commit e2955159922ce3d22ee3cabf68c290e208b5db54
File: src/html5shiv-printshiv.js line 11
By jdalton:

for bonus you might check both states, hidden true and hidden false. to cover the failing case that display is === 'none' for both which might happen if there is an issue getting the current style (which we try to avoid with the fake body).