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

I've seen some DOM methods error when they lack their original context, `document`, which is why I think the current shiv avoids simply doing `tags.replace(..., document.createElement)`.