VML objects in IE8 throws exception when I try to access tagName attribute. Is it possible to get it in some other way?

Sample code that raises exception:

function clickCallback(event) {
  var target = event.srcElement;
  target.tagName; // Here exception raised
}
有帮助吗?

解决方案

Found the answer: instead of tagName, nodeName attribute should be used.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top