These tests focus on the interaction between the DOM and the XML format. The language used to access the DOM is JavaScript, although it's possible to access it using other languages, such as PHP, Perl or even high-level languages (Java, C++, etc.). Bear in mind that JavaScript is an object-based language, not an object-oriented language strictu sensu. In order to extend the features of this language, in some tests I use the Prototype library, especially when the limitations of JavaScript would require a lot of verbose code (e.g. in the handling of inheritance).
Some popular coding practices (e.g. the innerHTML property) don't work in XML. That's why we should always grasp
the inner structure of a document to work around this problem. Since we're dealing with XML, the basic formatting of a page requires
the use of CSS. Otherwise, the browser will show the elements as bare inline strings
of text.
You can download all these tests in a single ZIP file.
| Name | Features tested |
|---|---|
| ajax-000.xml | Test on Ajax. |
| ajax-001.xml | Test on Ajax. |
| ajax-002.xml | Test on Ajax. |
| ajax-003.xml | Test on Ajax. |
| className-000.xml | className property |
| className-001.xml | className property |
| className-002.xml | className property |
| createElementNS-000.xml | createElementNS method |
| events-000.xml | DOM events |
| events-001.xml | DOM events |
| events-002.xml | DOM events |
| events-003.xml | DOM events |
| getAttribute-000.xml | getAttribute method |
| getAttributeNode-000.xml | getAttributeNode method |
| getAttributeNode-001.xml | getAttributeNode method |
| getAttributeNodeNS-000.xml | getAttributeNodeNS method |
| getAttributeNS-000.xml | getAttributeNS method |
| getElementsByTagNameNS-000.xml | getElementsByTagNameNS method |
| getElementsByTagNameNS-001.xml | getElementsByTagNameNS method |
| id-000.xml | id property |
| id-001.xml | id property |
| id-002.xml | id property |
| innerHTML-000.xml | innerHTML property |
| json-array-000.xml | JSON array notation |
| objects-000.xml | Objects |
| objects-001.xml | Objects |
| objects-002.xml | Objects |
| objects-003.xml | Objects |
| prototype-000.xml | Prototype's basic methods |
| prototype-001.xml | Prototype's advanced methods |
| prototype-002.xml | Prototype's advanced methods |
| setAttributeNS-000.xml | setAttributeNS method |
| SVG-DOM-000.xml | SVG and DOM |
| SVG-DOM-001.xml | SVG and DOM |
| SVG-DOM-002.xml | SVG and DOM |