Talk:Document Object Model: Difference between revisions

Content deleted Content added
Line 39:
== More W3C DOM ==
 
The discussion on feature detection is somewhat misleading and seems to suggest something only marginally better than good 'ol browser sniffing. The idea of feature detection is to test '''every''' feature that either may not be supported or may be supported differently on various browsers. The classic isare of course <code>getElementById</code> and <code>document.all</code>, but there are many, many others such as <code>clientX/clientY</code> and <code>pageX/pageY</code> ''etc.''
 
The outcome of feature detection is that either the appropriate code is offered for the environment, or nothing at all. There should be no errors shown to the user - the user should not even be aware that something has not happened.