aFarkas/html5shiv — comment on commit cee53872509ee9aafad04ddaca8117ac72ba3b23
File: src/html5shiv-printless.js line 41
By jonathantneal:

You are right and that's precisely what I meant, the magic is to shim the .document and not the .ownerDocument (which is already shimmed). Think of .document as the auto-generated document fragment for the element.