Firefox 17.0.1 throws an exception in the textContent shim because its implementation of Object.getOwnPropertyDescriptor returns objects without a get() method. So not only does it fail the initial feature detection (because Object.getOwnPropertyDescriptor(Element.prototype, "textContent").get is undefined), but it also fails both to get a property descriptor for Element.prototype.innerText (which works in IE) and throws and exception when trying to define Element.prototype.textContent.
I've monkey patched production code to wrap this shim in a try/catch block, and we should probably do the same here.
Firefox 17.0.1 throws an exception in the
textContent
shim because its implementation ofObject.getOwnPropertyDescriptor
returns objects without aget()
method. So not only does it fail the initial feature detection (becauseObject.getOwnPropertyDescriptor(Element.prototype, "textContent").get
is undefined), but it also fails both to get a property descriptor forElement.prototype.innerText
(which works in IE) and throws and exception when trying to defineElement.prototype.textContent
.I've monkey patched production code to wrap this shim in a try/catch block, and we should probably do the same here.