aFarkas/html5shiv — Issue #31: potential problem with `documentCreateElement`
Author: jdalton
Created: 2012-01-30 17:33:31+00:00
State: open

I noticed in Chrome and Firefox that:

~~~ js
var c = document.createElement;
c('div'); // throws an error
~~~

This means that an environment may error with how html5shiv stores `document.createElement` in its `documentCreateElement` variable.

A way around it is:

~~~ js
var call = Date.call;
call.call(documentCreateElement, scopeDocument, tag);
~~~