eligrey/classList.js — Issue #2: Shim fails in IE8 compatibility mode: 'Element' is null or not an object
Author: toddfast
Created: 2012-01-30 21:50:19+00:00
State: open

This line throws the following exception when running on a page in IE8 compatibility mode (basically IE7):

, elemCtrProto = (view.HTMLElement || view.Element)[protoProp]

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Timestamp: Mon, 30 Jan 2012 21:46:40 UTC

Message: 'Element' is null or not an object
Line: 23
Char: 4
Code: 0