473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

DOM: which version is most supported?

Hi,

which DOM version (level) should I learn? I've seen that there is a DOM
level 3, but is there any support for it already?

--
Rob
Jul 23 '05 #1
4 1797
Robert wrote:
Hi,

which DOM version (level) should I learn? I've seen that there is a DOM
level 3, but is there any support for it already?


DOM 0 is supported by every JavaScript-enabled browser that I know of.

DOM 1 has pretty good support: Mozilla, Netscape 6+, IE/Win 6+ (and to
a good degree in 5.x), Opera (5+, IIRC), Safari/Konqueror, etc. That
really should be your primary target for learning.

DOM2 is still pretty spotty. Mozilla supports it all, IIRC. IE
supports only what was taken from the IE DOM. I'm pretty sure than
Safari and Opera do style manipulation and events pretty well.

DOM3 it seems is minimally supported. IIRC, Mozilla supports part of it
but nothing else does.

Jul 23 '05 #2
DU
Robert wrote:
Hi,

which DOM version (level) should I learn? I've seen that there is a DOM
level 3, but is there any support for it already?


DOM 1 attributes and methods in various interfaces are overall very well
supported in modern browsers: MSIE 6 for Windows, Mozilla 1.x, Netscape
7.x, Safari 1.x, Konqueror 3.x, Opera 7.x, K-meleon 0.7+, Galeon 1.2+, etc..

DOM 2 attributes and methods are also fairly well supported by modern
browsers. All major browser manufacturers (Mozilla, Microsoft, Apple,
Opera) claim to support 100% of DOM 2 HTML and to support DOM 2 Core
very well.
Several noticeable issues on DOM 2 interfaces:
- MSIE 6 does not support DOM 2 Events interface. Except maybe a few
attributes. Mostly because implementing it would have necessarly implied
important changes in the underlying os. Mozilla 1.x and Opera 7.x
support DOM 2 Events very well.
- Mozilla still has issues for DOM 2 Range interface. MSIE 6 does not
support DOM 2 Range at all but has its proprietary DOM.
- In my own testpage, DOM 2 CharacterData attributes and methods are
impeccably, perfectly supported by MSIE 6 for Windows, Mozilla 1.x,
Netscape 7.x, Safari 1.x, Konqueror 3.x, Opera 7.x, K-meleon 0.7+,
Galeon 1.2+, etc.. So, it's worth to use these instead of proprietary
attributes and methods.
- MSIE 6 does not support DOM 2 CSS; Mozilla 1.x and Gecko-based
browsers support very well most of the attributes and methods. Opera 7.x
does not support DOM 2 CSS very well.

This page:

Browser Feature Detection
http://devedge.netscape.com/toolbox/...ure-detection/

shows a rough overview of the support for attributes and methods. When
going over each attribute and method, one can find partial support,
bugs, incomplete support, failures at tests, etc.. The measurement of
support for an attribute and method depends in most part on how strict,
exhaustive testing is done on each attribute and method.

The W3C also created pages where one can tests exhaustively the support
for attributes and properties:

DOM Conformance Test Suites
http://www.w3.org/DOM/Test/#releases

Finally Mozilla 1.6+ supports a few DOM 3 methods and attributes which
were introduced in DOM 3. Since most DOM 2 attributes and methods are
repeated in DOM 3, you could say Mozilla supports DOM 3 too.

What does each DOM Level bring?
http://www.mozilla.org/docs/dom/reference/levels.html

DU
Jul 23 '05 #3
JRS: In article <41*********************@news.skynet.be>, dated Fri, 6
Aug 2004 23:37:32, seen in news:comp.lang.javascript, Robert
<no****@yahoo.com> posted :
which DOM version (level) should I learn? I've seen that there is a DOM
level 3, but is there any support for it already?


On the Web, because of upwards compatibility, you should write in the
lowest level of DOM that is needed to satisfy the site requirements;
this will maximise your potential audience.

You should also test on earlier browsers than those that you support
fully, to ensure that the site degrades gracefully.
In an Intranet for which you can know what and where the lowest-level
browsers are, then write for the DOM of the lowest browsers that will
need to access the pages.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> JL / RC : FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #4
OK thanks Keith, DU and John, it helps me.
--
Rob
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Richie | last post by:
I went through the past six months or so of entries in c.l.javascript, and found a couple where people had expressed opinions about the value of supporting much older versions of Netscape and IE. ...
7
by: Luke Matuszewski | last post by:
Hi. I know that it is hard problem (as hard as CSS and HTML layouting rules apply), but maybe someone has some code or idea how to start it. For now i know i will cssQuery: ...
1
by: pbd22 | last post by:
hi. for some reason i am not able to navigate the dom. i keep getting the 'no properties' error but i think i am doing everything right. this is an XML response from an AJAX call. The ajax...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.