box-sizing-polyfill icon indicating copy to clipboard operation
box-sizing-polyfill copied to clipboard

Error in IE7 when hitting F5

Open olemarius opened this issue 12 years ago • 6 comments

When a page containing an element using boxsizing in IE7 loads, there's no errors showing, but once hitting F5 the following error shows up in the console (IE9 in IE7 mode)

SCRIPT65535: Unexpected call to method or property access. boxsizing.htc, line 99 character 4

Not sure what this is, but I'll report it even thought the script is still initialized and working (except from another bug I'll file separately)

olemarius avatar Apr 16 '12 06:04 olemarius

function restore() {
    if (apply) {
        element.runtimeStyle.removeAttribute("width"); // THIS IS LINE 99
        element.runtimeStyle.removeAttribute("height");
    }
}

olemarius avatar Apr 16 '12 08:04 olemarius

Any progress/trace as to why this error is being thrown?

Really trashing up my console.

TheKidCoder avatar Jun 20 '12 19:06 TheKidCoder

TheKidCoder: I think my errors have disappeared after I updated to the newest version, but need to double-check this to be sure..

olemarius avatar Jun 20 '12 20:06 olemarius

Is it still there? If yes: it is the the restore function trying to restore DOM elements that might already be deleted at that point (due to reload)

Schepp avatar Aug 14 '12 23:08 Schepp

Yep it's still there. And I updated to the current version on GitHub before testing now..

olemarius avatar Aug 15 '12 03:08 olemarius

Removed the error for the new version I just pushed. Should keep your console sane, now.

Schepp avatar Aug 15 '12 18:08 Schepp