문제

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