2009-07-23 4 views

답변

2
당신은 특징 검출 사용할 수 있습니다

:

  • DOM-이벤트 레벨 2 : document.implementation.hasFeature ("이벤트", "2.0")
  • DOM 코어 레벨 2 : document.implementation .hasFeature ("코어", "2.0"))
  • DOM-XPath를 레벨 3 : document.implementation.hasFeature ("의 XPath", "3.0")

캠프 1 도마뱀 (F (Internet Explorer) 지원 (IE, irefox, Mozilla), WebKit (Safari, Chrome), Presto 기반 (Opera) 브라우저는 DOM Core/Events/XPath Level 2를 지원하며 일부는 레벨 3.0을 지원합니다.

캠프 2 : DOM 수준 0 (표준이 아님)

희망이 도움이됩니다.

주목할 가치가있는, Ample SDK Internet Explorer와 다른 브라우저에서 DOM Level 2/3을 다시 구현함으로써 Ajax GUI 프레임 워크가 가능합니다.

+0

인터넷 익스플로러의 트라이던트 기반이라고 생각하십니까? – mhenry1384

+0

예, 수정되었습니다. –

+0

hasFeature는 더 이상 사용되지 않으며 https://developer.mozilla.org/en-US/docs/Web/API/DOMImplementation/hasFeature에 따라 사용되지 않습니다. 자세한 내용은 https://stackoverflow.com/questions/43317691/why-document-implementation-hasfeature-always-return-true#43317742를 참조하십시오. –

관련 문제