This article is being considered for deletion in accordance with Wikipedia's deletion policy. Please share your thoughts on the matter at this article's deletion discussion page. |
This article needs to be updated.(August 2022) |
The following tables compare Document Object Model (DOM) compatibility and support for a number of JavaScript engines used in web browsers.
For features that are fully supported (based on DOM Level 2 or DOM Level 3 modules that are under W3C Recommendation), an exact version number is given if it is certain that the feature was added in such version. DOM Level 0 and DOM Level 3 modules that are still under development are not included.
See List of ECMAScript engines for a full list.
These indicate the level of support for the given item in each engine. By default, the most recent version of the engine is implied. However, a specific version number can be listed; when this indicates full support, it's the initial version of the engine fully supporting the item.
Value | Meaning |
---|---|
Yes | Fully supported |
No | Has never been supported |
Partial | Only some values are supported |
Incorrect | Not implemented correctly in all cases |
Experimental | May be incomplete or buggy |
Nightly build | Currently in development; full support is expected |
Depends | Only supported for the specified conditions |
Dropped | No longer supported |
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | |
---|---|---|---|---|---|---|
DOM1 | 6.0 | Yes | 1.0 | 85 | Yes | 1.0 |
DOM2 | Mostly | Partial | Mostly | Partial | Mostly | Mostly |
DOM3 | No | No | Partial | Partial | Partial | Partial |
The interfaces within this section are considered fundamental, and must be fully implemented by all conforming implementations of the DOM, including all HTML DOM implementations.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Exception DOMException | |||||||
DOM1 | code | 5.0 [t 1] | ? | 1.0 | ? | ? | 1.0 |
Interface DOMStringList | |||||||
DOM3 | length | 6.0 [t 2] | No | 1.6 | No | ? | 2.0 |
contains() | ? | ||||||
item() | ? | ||||||
Interface NameList | |||||||
DOM3 | length | No | No | 1.6 | No | No | No |
getName() | |||||||
getNamespaceURI() | |||||||
contains() | |||||||
containsNS() | |||||||
Interface DOMImplementationList | |||||||
DOM3 | length | No | No | No | No | No | No |
item() | |||||||
Interface DOMImplementationSource | |||||||
DOM3 | getDOMImplementation() | No | No | No | No | No | No |
getDOMImplementationList() | |||||||
Interface DOMImplementation | |||||||
DOM1 | hasFeature() | 6.0 | ? | 1.0 | Yes | ? | 1.0 |
DOM2 | createDocumentType() | 9.0 [t 3] | No | ? | 1.0 | ||
createDocument() | ? | ||||||
DOM3 | getFeature() | No | No | No | ? | 1.0 | |
Interface DocumentFragment | |||||||
DOM1 | (no properties) | 6.0 | No | 1.0 | ? | ? | 1.0 |
Interface Document | |||||||
DOM1 | doctype | 9.0 | Yes | Partial | Yes | ? | 1.0 |
createElement() | 4.0 | 1.0 | ? | ||||
createTextNode() | 5.0 | ? | |||||
createAttribute() | 6.0 | ? | |||||
documentElement | 5.0 | ? | |||||
getElementsByTagName() | ? | ||||||
implementation | 6.0 | ? | |||||
createDocumentFragment() | No | ? | |||||
createComment() | ? | ||||||
createCDATASection() | 9.0 [t 3] | ? | |||||
createProcessingInstruction() | ? | 1.7 | ? | ||||
createEntityReference() | No | ? | No | ? | No | ||
DOM2 | importNode() | 9.0 [t 3] | No | 1.0 | Yes | ? | 1.0 |
createElementNS() | ? | ||||||
createAttributeNS() | ? | ||||||
getElementsByTagNameNS() | ? | ||||||
getElementById() | 8.0 | Yes | ? | 2.1 | |||
DOM3 | adoptNode() | 9.0 [t 3] | No | 1.7 | Yes | ? | 2.0 |
inputEncoding | No | ? | No | ||||
xmlEncoding | ? | ||||||
xmlStandalone | ? | ||||||
xmlVersion | ? | ||||||
domConfig | No | No | ? | ||||
strictErrorChecking | 1.7 | ? | |||||
documentURI | ? | ||||||
normalizeDocument() | ? | ||||||
renameNode() | ? | ||||||
Interface Node | |||||||
DOM1 | nodeName | 5.0 | Yes | 1.0 | Yes | ? | 1.0 |
nodeValue | ? | ||||||
nodeType | ? | ||||||
parentNode | ? | ||||||
childNodes | ? | ||||||
firstChild | ? | ||||||
lastChild | ? | ||||||
previousSibling | ? | ||||||
nextSibling | ? | ||||||
attributes | ? | ||||||
cloneNode() | ? | ||||||
insertBefore() | Partial | ? | |||||
replaceChild() | ? | ||||||
removeChild() | ? | ||||||
appendChild() | ? | ||||||
ownerDocument | 6.0 | 1.9 | ? | ||||
hasChildNodes() | 1.0 | ? | |||||
DOM2 | namespaceURI | 5.0 | Yes | 1.0 | Yes | ? | 1.0 |
prefix | ? | ||||||
localName | ? | ||||||
isSupported() | 9.0 [t 3] | ? | |||||
hasAttributes() | ? | ||||||
DOM3 | isSameNode() | 9.0 | No | 1.8 | Yes | ? | 2.1 |
compareDocumentPosition() | 9.0 [t 3] | 1.7 | 4.2.4 | ||||
baseURI | No | ? | Yes | ||||
textContent | 9.0 [t 3] | ? | 2.0 | ||||
lookupPrefix() | ? | ||||||
isDefaultNamespace() | ? | ||||||
lookupNamespaceURI() | ? | ||||||
getFeature() | No | ? | |||||
setUserData() | ? | No | |||||
getUserData() | ? | ||||||
isEqualNode() | 9.0 [t 3] | 1.9 | ? | 2.7 | |||
Interface NodeList | |||||||
DOM1 | length | 5.0 | Yes | 1.0 | Yes | ? | 1.0 |
item() | ? | ||||||
Interface NamedNodeMap | |||||||
DOM1 | length | 5.0 | Yes | 1.0 | Yes | ? | 1.0 |
getNamedItem() | ? | ||||||
setNamedItem() | ? | ||||||
removeNamedItem() | ? | ||||||
item() | ? | ||||||
DOM2 | getNamedItemNS() | 9.0 [t 3] | No | 1.0 | Yes | ? | 1.0 |
setNamedItemNS() | ? | ||||||
removeNamedItemNS() | ? | ||||||
Interface CharacterData | |||||||
DOM1 | data | 4.0 | Yes | 1.0 | Yes | ? | 1.0 |
length | ? | ||||||
substringData() | ? | ||||||
appendData() | ? | ||||||
insertData() | ? | ||||||
deleteData() | ? | ||||||
replaceData() | ? | ||||||
Interface Attr | |||||||
DOM1 | name | 6.0 | ? | 1.0 | Yes | Yes | 1.0 |
value | ? | ||||||
specified | Incorrect | Incorrect | 1.9.1 | Yes | Yes | ||
DOM2 | ownerElement | 9.0 [t 3] | ? | 1.0 | Yes | Yes | 1.0 |
DOM3 | schemaTypeInfo | No | No | No | No | ? | No |
isId | 1.9 | No | |||||
Interface Element | |||||||
DOM1 | tagName | 4.0 | Yes | 1.0 | Yes | Yes | 1.0 |
getElementsByTagName() | |||||||
getAttribute() | 8.0 | ||||||
setAttribute() | |||||||
removeAttribute() | |||||||
getAttributeNode() | 6.0 | ||||||
setAttributeNode() | 9.0 [t 3] | ||||||
removeAttributeNode() | |||||||
normalize() | No | ? | |||||
DOM2 | getAttributeNS() | 9.0 [t 3] | Yes | 1.0 | Yes | ? | 1.0 |
setAttributeNS() | ? | ||||||
removeAttributeNS() | ? | ||||||
getAttributeNodeNS() | ? | ||||||
setAttributeNodeNS() | ? | ||||||
getElementsByTagNameNS() | No | ? | |||||
hasAttribute() | Yes | ? | |||||
hasAttributeNS() | ? | ||||||
DOM3 | schemaTypeInfo | No | No | No | No | ? | No |
setIdAttribute() | ? | ||||||
setIdAttributeNS() | ? | ||||||
setIdAttributeNode() | ? | ||||||
Interface Text | |||||||
DOM1 | splitText() | 9.0 [t 3] | Yes | 1.0 | Yes | ? | 1.0 |
DOM3 | isElementContentWhitespace | No | No | 1.9.1 | No | ? | Yes |
wholeText | 9.0 [t 3] | ? | 2.1 | ||||
replaceWholeText() | ? | ||||||
Interface Comment | |||||||
DOM1 | (no properties) | 6.0 | No | 1.0 | Yes | ? | 1.0 |
Interface TypeInfo | |||||||
DOM3 | typeName | No | No | No | No | No | No |
typeNamespace | |||||||
isDerivedFrom() | |||||||
Interface UserDataHandler | |||||||
DOM3 | handle() | No | No | No | No | No | No |
Interface DOMError | |||||||
DOM3 | severity | No | No | No | No | No | 2.0 |
message | |||||||
type | |||||||
location | |||||||
relatedData | |||||||
relatedException | No | ||||||
Interface DOMErrorHandler | |||||||
DOM3 | handleError() | No | No | No | No | No | 2.0 |
Interface DOMLocator | |||||||
DOM3 | lineNumber | No | No | No | No | No | 2.0 |
columnNumber | |||||||
byteOffset | |||||||
utf16Offset | |||||||
relatedNode | |||||||
uri | |||||||
Interface DOMConfiguration | |||||||
DOM3 | parameterNames | No | No | No | No | ? | 2.0 |
setParameter() | ? | ||||||
getParameter() | ? | ||||||
canSetParameter() | ? |
doctype
— Prior to version 9.0, returns true when checked but always contains null.getElementById()
— Prior to version 8.0 returned elements with name
attribute set to value being found, not only id
. [t 4] getAttribute()
, setAttribute()
, removeAttribute()
— prior to version 8.0 returned, set, or removed, respectively, the corresponding DOM property instead of the string value of the attribute.AttributeNode.specified
— Does not set specified
to true
if ownerElement is null.Node.isSameNode
— Prior to version 9.0, only supported for XML documents.AttributeNode.specified
— Does not set specified
to true
if ownerElement is null.insertBefore(), replaceChild(), removeChild(), appendChild()
— Fails on Attr
nodes. [g 1] appendChild
does not work as expected for DocumentFragment
nodes prior to 1.8.AttributeNode.specified
— Prior to 1.9.1 does not set specified
to true
if ownerElement is null. Does not create Attribute Nodes for default values specified in the DTD.getElementById()
— Versions prior to Opera 9.50 returns elements with name
attribute set to value being found, not only id
. [p 1] URI attribute value
— In versions prior to Opera 9, all URI attribute values are resolved to full URI. Hence the value from getAttribute()
and getAttributeNode()
could be wrong if relative URIs are used.AttributeNode.specified
— Does not create Attribute Nodes for default values specified in the DTD.AttributeNode.specified
— Does not create Attribute Nodes for default values specified in the DTD.The interfaces defined here form part of the DOM Core specification, but objects that expose these interfaces will never be encountered in a DOM implementation that deals only with HTML.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface CDATASection | |||||||
DOM1 | (no properties) | No | No | 1.0 | Yes | ? | 2.0 |
Interface DocumentType | |||||||
DOM1 | name | No | No | 1.0 | Yes | ? | 1.0 |
entities | No [g 2] | ? | |||||
notations | ? | ||||||
DOM2 | publicId | No | No | 1.0 | Yes | ? | 1.0 |
systemId | ? | ||||||
internalSubset | ? | ||||||
Interface Notation | |||||||
DOM1 | publicId | No | No | 1.0 | Yes | ? | 2.0 |
systemId | ? | ||||||
Interface Entity | |||||||
DOM1 | publicId | No | No | 1.0 | Yes | ? | No |
systemId | ? | ||||||
notationName | ? | ||||||
DOM3 | inputEncoding | No | No | No | No | ? | No |
xmlEncoding | ? | ||||||
xmlVersion | ? | ||||||
Interface EntityReference | |||||||
DOM1 | (no properties) | No | No | 1.0 | Yes | ? | No |
Interface ProcessingInstruction | |||||||
DOM1 | target | No | No | 1.0 | Yes | ? | 2.0 |
data | ? |
The interfaces found within this section are not mandatory. This section extends the DOM Core API to describe objects and methods specific to HTML documents, and XHTML documents. In general, the functionality needed to manipulate hierarchical document structures, elements, and attributes will be found in the core section; functionality that depends on the specific elements defined in HTML will be found in this section. Elements deprecated since HTML 4.01 are not listed. Some elements and attributes listed here are deprecated in XHTML 1.1. For example, presentation attributes, image maps, frames and targets.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface HTMLCollection | |||||||
DOM1 | length | 7.0 | ? | 1.0 | ? | ? | 1.0 |
item() | ? | ? | ? | ||||
namedItem() | ? | ? | ? | ||||
Interface HTMLOptionsCollection | |||||||
DOM2 | length | ? | ? | 1.0 | ? | ? | 2.0 |
item() | ? | ? | ? | ? | |||
namedItem() | ? | ? | ? | ? | |||
Interface HTMLDocument | |||||||
DOM1 | domain | 4.0 | Yes | 1.0 | Yes | ? | 1.0 |
URL | ? | ||||||
body | ? | ||||||
images | ? | ||||||
applets | ? | ||||||
title | 3.0 | ? | |||||
referrer | ? | ||||||
links | ? | ||||||
forms | ? | ||||||
anchors | ? | ||||||
cookie | ? | ||||||
open() | ? | ||||||
close() | ? | ||||||
write() | ? | ||||||
writeln() | ? | ||||||
getElementsByName() | Yes | ? | ? | ||||
Interface HTMLElement | |||||||
DOM1 | id | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
title | ? | ? | |||||
lang | ? | ? | |||||
className | ? | ? | |||||
dir | 5.0 | ? | ? | ||||
Interface HTMLHtmlElement | |||||||
DOM1 | version | 6.0 | ? | 1.0 | ? | ? | 2.0 |
Interface HTMLHeadElement | |||||||
DOM1 | profile | 8.0 | ? | 1.0 | ? | ? | 1.0 |
Interface HTMLLinkElement | |||||||
DOM1 | disabled | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
charset | ? | ? | |||||
href | 8.0 | ? | ? | ||||
hreflang | 4.0 | ? | ? | ||||
media | ? | ? | |||||
rel | ? | ? | |||||
rev | ? | ? | |||||
target | ? | ? | |||||
type | ? | ? | |||||
Interface HTMLTitleElement | |||||||
DOM1 | text | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLMetaElement | |||||||
DOM1 | content | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
httpEquiv | ? | ? | |||||
name | ? | ? | |||||
scheme | 6.0 | ? | ? | ? | 2.0 | ||
Interface HTMLBaseElement | |||||||
DOM1 | href | 8.0 | Yes | 1.0 | ? | ? | 2.0 |
target | 4.0 | ? | ? | ||||
Interface HTMLStyleElement | |||||||
DOM2 | disabled | ? | ? | 1.0 | ? | ? | 1.0 |
media | 4.0 | Yes | ? | ? | |||
type | ? | ? | |||||
Interface HTMLBodyElement | |||||||
DOM1 | aLink | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
background | 8.0 | ? | ? | ||||
bgColor | 4.0 | ? | ? | ||||
link | ? | ? | |||||
text | ? | ? | |||||
vLink | ? | ? | |||||
Interface HTMLFormElement | |||||||
DOM1 | action | 8.0 | Yes | 1.9 | ? | ? | 1.0 |
acceptEncoding | ? | ? | 1.0 | ? | ? | ||
elements | 3.0 | Yes | ? | ? | |||
length | ? | ? | |||||
name | ? | ? | |||||
enctype | 4.0 | ? | ? | ||||
method | 3.0 | ? | ? | ||||
target | ? | ? | |||||
submit() | ? | ? | |||||
reset() | 4.0 | ? | ? | ||||
Interface HTMLSelectElement | |||||||
DOM1 | selectedIndex | 3.0 | Yes | 1.0 | ? | ? | 1.0 |
length | ? | ? | |||||
options | ? | ? | |||||
name | ? | ? | |||||
size | 4.0 | ? | ? | ||||
type | ? | ? | |||||
value | ? | ? | |||||
disabled | 5.0 | ? | ? | ||||
multiple | ? | ? | |||||
form | ? | ? | ? | ? | |||
tabIndex | ? | ? | ? | ? | |||
add() | ? | ? | ? | ? | |||
remove() | ? | ? | ? | ? | |||
blur() | 3.0 | Yes | ? | ? | |||
focus() | ? | ? | |||||
Interface HTMLOptGroupElement | |||||||
DOM1 | disabled | ? | ? | 1.0 | ? | ? | 2.0 |
label | No | Yes | ? | ? | |||
Interface HTMLOptionElement | |||||||
DOM1 | form | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
defaultSelected | ? | ? | |||||
text | ? | ? | |||||
index | ? | ? | ? | ? | |||
disabled | ? | ? | ? | ? | |||
label | 6.0 | Yes | ? | ? | 2.0 | ||
selected | 4.0 | ? | ? | 1.0 | |||
value | ? | ? | |||||
Interface HTMLInputElement | |||||||
DOM1 | defaultValue | 3.0 | Yes | 1.0 | ? | ? | 1.0 |
defaultChecked | ? | ? | |||||
form | ? | ? | |||||
accept | ? | ? | ? | ? | |||
accesskey | ? | ? | ? | ? | |||
align | ? | ? | ? | ? | |||
alt | ? | ? | ? | ? | |||
checked | 3.0 | Yes | ? | ? | |||
disabled | 5.0 | ? | ? | ||||
maxLength | 4.0 | ? | ? | 2.0 | |||
name | 3.0 | ? | ? | 1.0 | |||
readOnly | 4.0 | ? | ? | ||||
size | ? | ? | |||||
src | 1.9 | ? | ? | ||||
tabIndex | ? | ? | 1.0 | ? | ? | ||
type | 4.0 | Yes | ? | ? | |||
useMap | ? | ? | ? | ? | |||
value | 3.0 | Yes | ? | ? | |||
blur() | ? | ? | |||||
focus() | ? | ? | |||||
select() | ? | ? | |||||
click() | ? | ? | |||||
Interface HTMLTextAreaElement | |||||||
DOM1 | defaultValue | 3.0 | Yes | 1.0 | ? | ? | 1.0 |
form | ? | ? | |||||
accesskey | ? | ? | ? | ? | |||
cols | 4.0 | Yes | ? | ? | |||
disabled | 5.0 | ? | ? | ||||
name | 3.0 | ? | ? | ||||
readOnly | 4.0 | ? | ? | ||||
rows | ? | ? | |||||
tabIndex | ? | ? | ? | ? | |||
type | 4.0 | Yes | ? | ? | |||
value | 3.0 | ? | ? | ||||
blur() | ? | ? | |||||
focus() | ? | ? | |||||
select() | ? | ? | |||||
Interface HTMLButtonElement | |||||||
DOM1 | form | 3.0 | Yes | 1.0 | ? | ? | 1.0 |
accesskey | ? | ? | ? | ? | |||
disabled | 5.0 | Yes | ? | ? | |||
name | 3.0 | ? | ? | ||||
tabIndex | ? | ? | ? | ? | |||
type | 3.0 | Yes | ? | ? | |||
value | ? | ? | |||||
Interface HTMLLabelElement | |||||||
DOM1 | form | 6.0 | Yes | 1.0 | ? | ? | 1.0 |
accesskey | 5.0 | ? | ? | ||||
htmlFor | 4.0 | ? | ? | ||||
Interface HTMLFieldSetElement | |||||||
DOM1 | form | 5.0 | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLLegendElement | |||||||
DOM1 | form | 5.0 | Yes | 1.0 | ? | ? | 1.0 |
accesskey | ? | ? | ? | ? | |||
align | 5.0 | Yes | ? | ? | |||
Interface HTMLUListElement | |||||||
DOM1 | compact | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
type | ? | ? | |||||
Interface HTMLOListElement | |||||||
DOM1 | compact | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
start | ? | ? | |||||
type | ? | ? | |||||
Interface HTMLDListElement | |||||||
DOM1 | compact | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLLIElement | |||||||
DOM1 | type | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
value | ? | ? | |||||
Interface HTMLDivElement | |||||||
DOM1 | align | ? | ? | 1.0 | ? | ? | 1.0 |
Interface HTMLParagraphElement | |||||||
DOM1 | align | ? | ? | 1.0 | ? | ? | 1.0 |
Interface HTMLHeadingElement | |||||||
DOM1 | align | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLQuoteElement | |||||||
DOM1 | cite | 8.0 | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLPreElement | |||||||
DOM1 | width | ? | ? | 1.0 | ? | ? | 1.0 |
Interface HTMLBRElement | |||||||
DOM1 | clear | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLHRElement | |||||||
DOM1 | align | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
noShade | ? | ? | |||||
size | ? | ? | |||||
width | ? | ? | |||||
Interface HTMLModElement | |||||||
DOM1 | cite | 8.0 | ? | 1.9 | ? | ? | 1.0 |
dateTime | ? | ? | 1.0 | ? | ? | ||
Interface HTMLAnchorElement | |||||||
DOM1 | accesskey | ? | ? | 1.0 | ? | ? | 1.0 |
charset | 6.0 | Yes | ? | ? | |||
coords | ? | ? | |||||
href | 3.0 | ? | ? | ||||
hreflang | 6.0 | ? | ? | ||||
name | 4.0 | ? | ? | ||||
rel | ? | ? | |||||
rev | ? | ? | |||||
shape | 6.0 | ? | ? | ||||
tabIndex | ? | ? | ? | ? | |||
target | 3.0 | Yes | ? | ? | |||
type | 6.0 | ? | ? | ||||
blur() | ? | ? | ? | ? | |||
focus() | ? | ? | ? | ? | |||
Interface HTMLImageElement | |||||||
DOM1 | name | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
align | ? | ? | |||||
alt | ? | ? | |||||
border | ? | ? | |||||
height | ? | ? | |||||
hspace | ? | ? | |||||
isMap | ? | ? | |||||
longDesc | 8.0 | ? | ? | ? | 2.0 | ||
src | 4.0 | Yes | ? | ? | 1.0 | ||
useMap | ? | ? | |||||
vspace | ? | ? | |||||
width | ? | ? | |||||
Interface HTMLObjectElement | |||||||
DOM1 | form | ? | ? | 1.0 | ? | ? | 1.0 |
code | 4.0 | Yes | ? | ? | |||
align | ? | ? | |||||
archive | ? | ? | ? | ? | |||
border | ? | ? | ? | ? | |||
codeBase | 8.0 | Yes | ? | ? | |||
codeType | 4.0 | ? | ? | ||||
data | 8.0 | ? | ? | ||||
declare | ? | ? | ? | ? | 2.0 | ||
height | 4.0 | Yes | ? | ? | 1.0 | ||
hspace | ? | ? | |||||
name | ? | ? | |||||
standby | ? | ? | ? | ? | |||
tabIndex | ? | ? | ? | ? | |||
type | 4.0 | Yes | ? | ? | |||
useMap | ? | ? | ? | ? | |||
vspace | 4.0 | Yes | ? | ? | |||
width | ? | ? | |||||
DOM2 | contentDocument | No | ? | ? | 2.0 | ||
Interface HTMLParamElement | |||||||
DOM1 | name | ? | ? | 1.0 | ? | ? | 1.0 |
type | ? | ? | ? | ? | |||
value | ? | ? | ? | ? | |||
valueType | No | ? | ? | ? | |||
Interface HTMLMapElement | |||||||
DOM1 | areas | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
name | ? | ? | |||||
Interface HTMLAreaElement | |||||||
DOM1 | accesskey | ? | ? | 1.0 | ? | ? | 1.0 |
alt | 4.0 | Yes | ? | ? | |||
coords | ? | ? | |||||
hrefs | ? | ? | ? | ? | |||
noHrefs | ? | ? | ? | ? | |||
shape | 4.0 | Yes | ? | ? | |||
tabIndex | ? | ? | ? | ? | |||
target | 4.0 | Yes | ? | ? | |||
Interface HTMLScriptElement | |||||||
DOM1 | text | 4.0 | 0 | 1.0 | ? | ? | 1.0 |
htmlFor (reserved for future use) | Yes | ? | ? | No | |||
event (reserved for future use) | ? | ? | 2.0 | ||||
charset | ? | ? | ? | ? | 1.0 | ||
defer | 4.0 | Yes | ? | ? | |||
src | 8.0 | ? | ? | ||||
type | 4.0 | ? | ? | ||||
target | ? | ? | ? | ? | |||
Interface HTMLTableElement | |||||||
DOM1 | caption | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
tHead | ? | ? | |||||
tFoot | ? | ? | |||||
rows | ? | ? | |||||
tBodies | ? | ? | |||||
align | ? | ? | |||||
bgColor | ? | ? | |||||
border | ? | ? | |||||
cellPadding | No | ? | |||||
cellSpacing | ? | ? | |||||
frame | ? | ? | |||||
rules | No | ? | ? | ||||
summary | 6.0 | ? | ? | ||||
width | 4.0 | Yes | ? | ? | |||
createTHead() | ? | ? | |||||
deleteTHead() | ? | ? | |||||
createTFoot() | ? | ? | |||||
deleteTFoot() | ? | ? | |||||
createCaption() | ? | ? | |||||
deleteCaption() | ? | ? | |||||
insertRow() | ? | ? | |||||
deleteRow() | ? | ? | |||||
Interface HTMLTableCaptionElement | |||||||
DOM1 | align | 5.0 | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLTableColElement | |||||||
DOM1 | align | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
ch | 6.0 | No | ? | ? | 2.0 | ||
chOff | ? | ? | |||||
span | 5.0 | Yes | ? | ? | 1.0 | ||
vAlign | 4.0 | ? | ? | ||||
width | 5.0 | 0 | ? | ? | |||
Interface HTMLTableSectionElement | |||||||
DOM1 | align | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
ch | 6.0 | No | ? | ? | 2.0 | ||
chOff | ? | ? | |||||
vAlign | 4.0 | Yes | ? | ? | 1.0 | ||
rows | ? | ? | |||||
insertRow() | ? | ? | |||||
deleteRow() | ? | ? | |||||
Interface HTMLTableRowElement | |||||||
DOM1 | rowIndex | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
sectionRowIndex | ? | ? | |||||
cells | ? | ? | |||||
align | ? | ? | |||||
bgColor | ? | ? | |||||
ch | 6.0 | No | ? | ? | 2.0 | ||
chOff | ? | ? | |||||
vAlign | 4.0 | Yes | ? | ? | 1.0 | ||
insertCell() | ? | ? | |||||
deleteCell() | ? | ? | |||||
Interface HTMLTableCellElement | |||||||
DOM1 | cellIndex | 4.0 | Yes | 1.0 | Incorrect | ? | 1.0 |
abbr | 6.0 | ? | ? | 2.0 | |||
align | 4.0 | ? | ? | 1.0 | |||
axis | 6.0 | ? | ? | ||||
bgColor | 4.0 | ? | ? | ||||
ch | 6.0 | No | ? | ? | 2.0 | ||
chOff | ? | ? | |||||
colSpan | 4.0 | Yes | ? | ? | 1.0 | ||
headers | 6.0 | ? | ? | ||||
height | 4.0 | ? | ? | ||||
noWrap | ? | ? | |||||
rowSpan | ? | ? | |||||
scope | ? | ? | ? | ? | |||
vAlign | 4.0 | Yes | ? | ? | |||
width | ? | ? | |||||
Interface HTMLFrameSetElement | |||||||
DOM1 | cols | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
rows | ? | ? | |||||
Interface HTMLFrameElement | |||||||
DOM1 | frameBorder | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
longDesc | 8.0 | ? | ? | ||||
marginHeight | 6.0 | ? | ? | ||||
marginWidth | ? | ? | |||||
name | 4.0 | ? | ? | ||||
noResize | ? | ? | |||||
scrolling | ? | ? | |||||
src | 8.0 | ? | ? | ||||
DOM2 | contentDocument | No | Yes | 1.0 | ? | ? | 1.0 |
Interface HTMLIFrameSetElement | |||||||
DOM1 | align | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
frameBorder | ? | ? | ? | ? | |||
height | 4.0 | Yes | ? | ? | |||
longDesc | 8.0 | ? | ? | ||||
marginHeight | 4.0 | ? | ? | ||||
marginWidth | ? | ? | |||||
name | ? | ? | |||||
scrolling | ? | ? | |||||
src | 8.0 | ? | ? | ||||
width | 4.0 | ? | ? | ||||
DOM2 | contentDocument | No | ? | ? |
profile
, href
, background
, action
, cite
, longDesc
, codebase
, data
, src
— Prior to version 8.0 relative URLs were not resolved to full URLs. [t 5] cellIndex
— Always return zero.[ citation needed ]text
— Opera 8 and lower returned data at src
, when it should return inline data instead.The interfaces found within this section are not mandatory. The interfaces in this section are base interfaces used to represent any type of style sheet.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface StyleSheet | |||||||
DOM2 | type | 6.0 | ? | 1.0 | Yes | ? | 2.0 |
disabled | ? | ? | |||||
ownerNode | No | ? | ? | ||||
parentStyleSheet | 6.0 | ? | ? | ||||
href | 8.0 | ? | ? | ||||
title | 6.0 | ? | ? | ||||
media | Incorrect | ? | ? | ||||
Interface StyleSheetList | |||||||
DOM2 | length | 6.0 | ? | 1.0 | Yes | ? | 2.0 |
item() | ? | ? | |||||
Interface MediaList | |||||||
DOM2 | mediaText | No | ? | 1.0 | Yes | ? | 2.0 |
length | ? | ? | |||||
item() | ? | ? | |||||
deleteMedium() | ? | ? | |||||
appendMedium() | ? | ? | |||||
Interface LinkStyle | |||||||
DOM2 | sheet | No | ? | 1.0 | No | ? | 2.0 |
Interface DocumentStyle | |||||||
DOM2 | styleSheets | No | ? | 1.0 | No | ? | 2.0 |
href
— Prior to version 8.0 relative URLs were not resolved to full URLs. [t 5] media
— Returns string instead of MediaList
.The interfaces within this section are considered fundamental CSS interfaces, and must be supported by all conforming implementations of the CSS module. These interfaces represent CSS style sheets specifically.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface CSSStyleSheet | |||||||
DOM2 | ownerRule | No | ? | 1.0 | ? | ? | 2.0 |
cssRules | Yes | 1.3 | ? | ||||
insertRule() | No | No | ? | ||||
deleteRule() | ? | ||||||
Interface StyleSheetList | |||||||
DOM2 | length | 6.0 | ? | 1.0 | ? | ? | 2.0 |
item() | ? | ? | ? | ||||
Interface CSSRuleList | |||||||
DOM2 | length | No | ? | 1.0 | ? | ? | 2.0 |
item() | ? | ? | ? | ||||
Interface CSSRule | |||||||
DOM2 | type | No | ? | 1.0 | ? | ? | 2.0 |
cssText | Yes | ? | ? | ||||
parentStyleSheet | 1.3 | ? | |||||
parentRule | ? | ? | ? | ||||
Interface CSSStyleRule | |||||||
DOM2 | selectorText | 6.0 | Yes | 1.0 | 1.3 | ? | 2.0 |
style | No | ? | ? | ? | |||
Interface CSSMediaRule | |||||||
DOM2 | media | No | ? | 1.0 | ? | ? | 2.0 |
cssRules | ? | ? | ? | ||||
insertRule() | ? | ? | ? | ||||
deleteRule() | ? | ? | ? | ||||
Interface CSSFontFaceRule | |||||||
DOM2 | style | No | ? | 1.9.1 [g 3] | ? | ? | 2.0 |
Interface CSSPageRule | |||||||
DOM2 | selectorText | No | ? | No [g 4] | ? | ? | 2.0 |
style | ? | ? | ? | ||||
Interface CSSImportRule | |||||||
DOM2 | href | No | Yes | 1.0 | 1.3 | ? | 2.0 |
media | ? | ? | ? | ||||
styleSheet | ? | ? | ? | ||||
Interface CSSCharsetRule | |||||||
DOM2 | encoding | No | ? | 1.0 | ? | ? | 2.0 |
Interface CSSUnknownRule | |||||||
DOM2 | (no properties) | No | ? | No [g 5] | ? | ? | 2.0 |
Interface CSSStyleDeclaration | |||||||
DOM2 | cssText | No | ? | 1.0 | ? | ? | 2.0 |
length | ? | ? | ? | ||||
parentRule | ? | ? | ? | ||||
getPropertyValue() | Yes | 1.3 | ? | 1.0 | |||
getPropertyCSSValue() | ? | No [g 6] | ? | ? | 2.0 | ||
removeProperty() | No | 1.0 | 1.3 | ? | 1.0 | ||
getPropertyPriority() | Incorrect | ? | ? | 2.0 | |||
setProperty() | Yes | 1.3 | ? | 1.0 | |||
item() | ? | ? | ? | 2.0 | |||
Interface CSSValue | |||||||
DOM2 | cssText | No | ? | No [g 6] | ? | ? | No |
cssValueType | ? | ? | ? | ||||
Interface CSSPrimitiveValue | |||||||
DOM2 | primitiveType | No | ? | No [g 7] | ? | ? | No |
setFloatValue() | ? | No | ? | ? | |||
getFloatValue() | ? | ? | ? | ||||
setStringValue() | ? | ? | ? | ||||
getStringValue() | ? | ? | ? | ||||
getCounterValue() | ? | ? | ? | ||||
getRectValue() | ? | ? | ? | ||||
getRGBColorValue() | ? | ? | ? | ||||
Interface CSSValueList | |||||||
DOM2 | length | No | ? | No | ? | ? | No |
item() | ? | ? | ? | ||||
Interface RGBColor | |||||||
DOM2 | red | No | ? | No | ? | ? | No |
green | ? | ? | ? | ||||
blue | ? | ? | ? | ||||
Interface Rect | |||||||
DOM2 | top | No | ? | No | ? | ? | No |
right | ? | ? | ? | ||||
bottom | ? | ? | ? | ||||
left | ? | ? | ? | ||||
Interface Counter | |||||||
DOM2 | identifier | No | ? | No | ? | ? | No |
listStyle | ? | ? | ? | ||||
separator | ? | ? | ? | ||||
Interface ViewCSS | |||||||
DOM2 | getComputedStyle() | No | No | 1.0 | No | ? | 1.0 |
Interface DocumentCSS | |||||||
DOM2 | getOverrideStyle() | No | ? | No [g 8] | ? | ? | No |
Interface DOMImplementationCSS | |||||||
DOM2 | createCSSStyleSheet() | No | ? | No [g 9] | ? | ? | No |
Interface ElementCSSInlineStyle | |||||||
DOM2 | style | 6.0 | Yes | 1.0 | 1.3 | Yes | 1.0 |
getPropertyPriority()
— Returns !important
instead of important
.The interfaces found within this section are not mandatory.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface CSS2Properties | |||||||
DOM2 | Support this interface | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
Properties | Please refer to Comparison of browser engines (CSS support) for the comparison of CSS properties. |
The interfaces found within this section are not mandatory. The first goal is the design of a generic event system which allows registration of event handlers, describes event flow through a tree structure, and provides basic contextual information for each event. The second goal of the event model is to provide a common subset of the current event systems used in DOM Level 0 browsers. See also DOM Events for details.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface EventTarget | |||||||
DOM2 | addEventListener() | 5.0 [t 6] | No | 1.0 | Yes | Yes | 1.0 |
removeEventListener() | |||||||
dispatchEvent() | ? | ? | |||||
Interface EventListener | |||||||
DOM2 | handleEvent() | ? | ? | ? | ? | ? | 1.0 |
Interface Event | |||||||
DOM2 | type | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
target | No | 1.3 | Incorrect | ? | |||
currentTarget | No | 1.0 | ? | ? | |||
eventPhase | ? | ? | |||||
bubbles | ? | ? | |||||
cancelable | ? | ? | |||||
timeStamp | Yes | ? | ? | ||||
stopPropagation() | 1.0 | ? | ? | ||||
preventDefault() | ? | ? | |||||
initEvent() | ? | ? | |||||
Exception EventException | |||||||
DOM2 | code | No | No | 1.0 | ? | ? | 1.0 |
Interface DocumentEvent | |||||||
DOM2 | createEvent() | No | No | 1.0 | ? | ? | 1.0 |
Interface UIEvent | |||||||
DOM2 | view | No | No | No [g 10] | ? | ? | 1.0 |
detail | ? | ? | |||||
initUIEvent() | ? | ? | |||||
Events for interface UIEvent | |||||||
DOM2 | DOMFocusIn | No | No | No [g 10] | ? | ? | 1.0 |
DOMFocusOut | ? | ? | |||||
DOMActivate | ? | ? | |||||
Interface MouseEvent | |||||||
DOM2 | screenX | 4.0 | Yes | 1.0 | Yes | ? | 1.0 |
screenY | ? | ||||||
clientX | Incorrect | ? | |||||
clientY | Incorrect | ? | |||||
ctrlKey | Yes | ? | |||||
shiftKey | ? | ||||||
altKey | ? | ||||||
metaKey | No | No | ? | ||||
button | Incorrect | Incorrect | Incorrect | ? | 1.0 | ||
relatedTarget | No | No | Yes | ? | 1.0 | ||
initMouseEvent() | ? | ? | ? | ? | |||
Events for interface MouseEvent | |||||||
DOM2 | click | 4.0 | Yes | 1.0 | ? | ? | 1.0 |
mousedown | ? | ? | |||||
mouseup | ? | ? | |||||
mouseover | ? | ? | |||||
mousemove | ? | ? | |||||
mouseout | ? | ? | |||||
Interface MutationEvent | |||||||
DOM2 | relatedNode | No | No | 1.0 | ? | ? | 1.0 |
prevValue | ? | ? | |||||
newValue | ? | ? | |||||
attrName | ? | ? | |||||
attrChange | ? | ? | |||||
initMutationEvent | ? | ? | |||||
Events for interface MutationEvent | |||||||
DOM2 | DOMSubtreeModified | 5.0 [t 7] | No | 1.9 | Yes | Partial | No |
DOMNodeInserted | 1.0 | No | 1.0 | ||||
DOMNodeRemoved | |||||||
DOMNodeRemovedFromDocument | No [g 11] | ||||||
DOMNodeInsertedIntoDocument | Yes | ||||||
DOMAttrModified | 1.0 | No | No | ||||
DOMCharacterDataModified | Yes | ||||||
Events for HTML | |||||||
DOM2 | load | 4.0 | Yes | 1.0 | ? | ? | 2.0 |
unload | ? | ? | |||||
abort | ? | ? | No | ||||
error | ? | ? | 2.0 | ||||
select | ? | ? | |||||
change | ? | ? | |||||
submit | ? | ? | |||||
reset | ? | ? | |||||
focus | ? | ? | |||||
blur | ? | ? | |||||
resize | ? | ? | |||||
scroll | ? | ? |
button
— Does not use W3C values.button
— Does not use W3C values.target
— Return text node, if any, of the target element node prior to 1.3.timeStamp
— Is relative to the system start instead of to 1 January 1970. [g 12] target
— Return text node, if any, of the target element node (fixed in v73, but reverted in v85).clientX
, clientY
— Treated as pageX
and pageY
.button
— Does not use W3C values.DOMSubtreeModified
— Not triggered when an element is removed from the subtree.button
— Does not use W3C values prior to 8.0.The interfaces found within this section are not mandatory. A document may have one or more "views" associated with it, e.g., a computed view on a document after applying a CSS stylesheet, or multiple presentations (e.g. HTML frame) of the same document in a client. That is, a view is some alternate representation of, or a presentation of, and associated with, a source document.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface AbstractView | |||||||
DOM2 | document | 6.0 | ? | 1.0 | ? | ? | 1.0 |
Interface DocumentView | |||||||
DOM2 | defaultView | No | ? | 1.0 | ? | ? | 1.0 |
defaultView
— MSHTML does not support the defaultView property for documents, but it supports another property with the same meaning which is parentWindow.The interfaces found within this section are not mandatory. Its interfaces provide easy-to-use, robust, selective traversal of a document's contents.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface NodeIterator | |||||||
DOM2 | root | No | ? | 1.9.1 | ? | ? | 1.0 |
whatToShow | ? | ? | ? | ||||
filter | ? | ? | ? | ||||
expandEntityReferences | ? | ? | ? | ||||
nextNode() | Yes | ? | ? | ? | 2.0 | ||
previousNode() | ? | ? | ? | ||||
detach() | No | ? | ? | ? | 1.0 | ||
Interface NodeFilter | |||||||
DOM2 | acceptNode() | No | ? | 1.0 | ? | ? | 1.0 |
Interface TreeWalker | |||||||
DOM2 | root | No | ? | 1.0 | ? | ? | 1.0 |
whatToShow | ? | ? | ? | ||||
filter | ? | ? | ? | ||||
expandEntityReferences | ? | ? | ? | ||||
currentNode | ? | ? | ? | ||||
parentNode() | ? | ? | ? | ||||
firstChild() | ? | ? | ? | ||||
lastChild() | ? | ? | ? | ||||
previousSibling() | ? | ? | ? | ||||
nextSibling() | ? | ? | ? | ||||
previousNode() | ? | ? | ? | ||||
nextNode() | ? | ? | ? | ||||
Interface DocumentTraversal | |||||||
DOM2 | createNodeIterator() | No | ? | 1.9.1 | ? | ? | 1.0 |
createTreeWalker() | ? | 1.0 | ? | ? |
The interfaces found within this section are not mandatory. It includes methods for creating and moving a Range and methods for manipulating content with Ranges.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Interface Range | |||||||
DOM2 | startContainer | No | ? | 1.0 | Yes | ? | 1.0 |
startOffset | ? | ? | |||||
endContainer | ? | ? | |||||
endOffset | ? | ? | |||||
collapsed | ? | ? | |||||
commonAncestorContainer | ? | ? | |||||
setStart() | ? | ? | |||||
setEnd() | ? | ? | |||||
setStartBefore() | ? | ? | |||||
setStartAfter() | ? | ? | |||||
setEndBefore() | ? | ? | |||||
setEndAfter() | ? | ? | |||||
collapse() | ? | ? | |||||
selectNode() | ? | ? | |||||
selectNodeContents() | ? | ? | |||||
compareBoundaryPoints() | ? | ? | |||||
deleteContents() | ? | ? | |||||
extractContents() | ? | ? | |||||
cloneContents() | ? | ? | |||||
insertNode() | ? | ? | |||||
surroundContents() | ? | ? | |||||
cloneRange() | ? | ? | |||||
toString() | ? | ? | |||||
detach() | ? | ? | |||||
Interface DocumentRange | |||||||
DOM2 | createRange() | No | ? | 1.0 | No | ? | 1.0 |
Exception RangeException | |||||||
DOM2 | code | No | ? | 1.0 | Yes | ? | 1.0 |
The interfaces within this section are considered fundamental, and must be fully implemented by all conforming implementations of the DOM Load and Save module.
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Exception LSException | |||||||
DOM3 | code | No | No | No [g 13] | No | No | 1.0 |
Interface DOMImplementationLS | |||||||
DOM3 | createLSParser() | No | No | No | No | No | 1.0 |
createLSSerializer() | |||||||
createLSInput() | |||||||
createLSOutput() | |||||||
Interface LSParser | |||||||
DOM3 | domConfig | No | No | No | No | No | 1.0 |
filter | |||||||
async | |||||||
busy | |||||||
parse() | |||||||
parseURI() | |||||||
parseWithContext() | |||||||
abort() | |||||||
Interface LSInput | |||||||
DOM3 | characterStream | No | No | No | No | No | 1.0 |
byteStream | |||||||
stringData | |||||||
systemId | |||||||
publicId | |||||||
baseURI | |||||||
encoding | |||||||
certifiedText | |||||||
Interface LSResourceResolver | |||||||
DOM3 | resolveResource() | No | No | No | No | No | No |
Interface LSParserFilter | |||||||
DOM3 | whatToShow | No | No | No | No | No | No |
startElement() | 2.0 | ||||||
acceptNode() | |||||||
Interface LSProgressEvent | |||||||
DOM3 | input | No | No | No | No | No | No |
position | |||||||
totalSize | |||||||
Interface LSLoadEvent | |||||||
DOM3 | newDocument | No | No | No | No | No | 2.0 |
input | No | ||||||
Interface LSSerializer | |||||||
DOM3 | domConfig | No | No | No | No | No | 1.0 |
newLine | |||||||
filter | |||||||
write() | |||||||
writeToURI() | |||||||
writeToString() | |||||||
Interface LSOutput | |||||||
DOM3 | characterStream | No | No | No | No | No | 1.0 |
byteStream | |||||||
systemId | |||||||
encoding | |||||||
Interface LSSerializerFilter | |||||||
DOM3 | whatToShow | No | No | No | No | No | No |
The interfaces found within this section are not mandatory. This module provides interfaces to guide construction and editing of XML documents. Examples of such guided editing are queries like those that combine questions like "what does the schema allow me to insert/delete here" and "if I insert/delete here, will the document still be valid."
MSHTML | Tasman | Gecko | WebKit | KHTML | Presto | ||
---|---|---|---|---|---|---|---|
Exception ExceptionVAL | |||||||
DOM3 | code | No | No | No | No | No | No |
Interface DocumentEditVAL | |||||||
DOM3 | continuousValidityChecking | No | No | No | No | No | No |
domConfig | |||||||
getDefinedElements() | |||||||
validateDocument() | |||||||
Interface NodeEditVAL | |||||||
DOM3 | defaultValue | No | No | No | No | No | No |
enumeratedValues | |||||||
canInsertBefore() | |||||||
canRemoveChild() | |||||||
canReplaceChild() | |||||||
canAppendChild() | |||||||
nodeValidity() | |||||||
Interface ElementEditVAL | |||||||
DOM3 | allowedChildren | No | No | No | No | No | No |
allowedFirstChildren | |||||||
allowedParents | |||||||
allowedNextSiblings | |||||||
allowedPreviousSiblings | |||||||
allowedAttributes | |||||||
requiredAttributes | |||||||
contentType | |||||||
canSetTextContent | |||||||
canSetAttribute | |||||||
canSetAttributeNode | |||||||
canSetAttributeNS | |||||||
canRemoveAttribute | |||||||
canRemoveAttributeNS | |||||||
canRemoveAttributeNode | |||||||
isElementDefined | |||||||
isElementDefinedNS | |||||||
Interface CharacterDataEditVAL | |||||||
DOM3 | isWhitespaceOnly() | No | No | No | No | No | No |
canSetData() | |||||||
canAppendData() | |||||||
canReplaceData() | |||||||
canInsertData() | |||||||
canDeleteData() |
A document type definition (DTD) is a set of markup declarations that define a document type for an SGML-family markup language.
The Document Object Model (DOM) is a cross-platform and language-independent interface that treats an XML or HTML document as a tree structure wherein each node is an object representing a part of the document. The DOM represents a document with a logical tree. Each branch of the tree ends in a node, and each node contains objects. DOM methods allow programmatic access to the tree; with them one can change the structure, style or content of a document. Nodes can have event handlers attached to them. Once an event is triggered, the event handlers get executed.
Dynamic HTML, or DHTML, is a term which was used by some browser vendors to describe the combination of HTML, style sheets and client-side scripts that enabled creation of interactive and animated documents. The application of DHTML was introduced by Microsoft with the release of Internet Explorer 4 in 1997.
The HyperText Markup Language or HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript.
An HTML element is a type of HTML document component, one of several types of HTML nodes. The first used version of HTML was written by Tim Berners-Lee in 1993 and there have since been many versions of HTML. The most commonly used version is HTML 4.01, which became official standard in December 1999. An HTML document is composed of a tree of simple HTML nodes, such as text nodes, and HTML elements, which add semantics and formatting to parts of document. Each element can have HTML attributes specified. Elements can also have content, including other elements and text.
A node is a basic unit of a data structure, such as a linked list or tree data structure. Nodes contain data and also may link to other nodes. Links between nodes are often implemented by pointers. It is a computer connected to the internet that participates in the peer to peer network.
DOM Events are a signal that something has occurred, or is occurring, and can be triggered by user interactions or by the browser. Client-side scripting languages like JavaScript, JScript, ECMAScript, VBScript, and Java can register various event handlers or listeners on the element nodes inside a DOM tree, such as in HTML, XHTML, XUL, and SVG documents.
XMLHttpRequest (XHR) is an API in the form of an object whose methods transfer data between a web browser and a web server. The object is provided by the browser's JavaScript environment. Particularly, retrieval of data from XHR for the purpose of continually modifying a loaded web page is the underlying concept of Ajax design. Despite the name, XHR can be used with protocols other than HTTP and data can be in the form of not only XML, but also JSON, HTML or plain text.
This article compares Cascading Style Sheets (CSS) support for several browser engines.
This article compares HTML support by several browser engines.
In computing, quirks mode is a technique used by some web browsers for the sake of maintaining backward compatibility with web pages designed for old web browsers instead of strictly complying with W3C and IETF standards in standards mode.
The canvas element is part of HTML5 and allows for dynamic, scriptable rendering of 2D shapes and bitmap images. It is a low level, procedural model that updates a bitmap. HTML5 Canvas also helps in making 2D games.
The following tables compare SVG compatibility and support for a number of browser engines.
Extensible HyperText Markup Language (XHTML) is part of the family of XML markup languages. It mirrors or extends versions of the widely used HyperText Markup Language (HTML), the language in which Web pages are formulated.
XPath is an expression language designed to support the query or transformation of XML documents. It was defined by the World Wide Web Consortium (W3C) and can be used to compute values from the content of an XML document. Support for XPath exists in applications that support XML, such as web browsers, and many programming languages.
Animation of Scalable Vector Graphics, an open XML-based standard vector graphics format is possible through various means:
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML. CSS is a cornerstone technology of the World Wide Web, alongside HTML and JavaScript.
This article compares web typography support for several browser engines.
In web development, the CSS box model refers to how HTML elements are modeled in browser engines and how the dimensions of those HTML elements are derived from CSS properties. It is a fundamental concept for the composition of HTML webpages. The guidelines of the box model are described by web standards World Wide Web Consortium (W3C) specifically the CSS Working Group. For much of the late-1990s and early 2000s there had been non-standard compliant implementations of the box model in mainstream browsers. With the advent of CSS2 in 1998, which introduced the box-sizing
property, the problem had mostly been resolved.
Content Security Policy (CSP) is a computer security standard introduced to prevent cross-site scripting (XSS), clickjacking and other code injection attacks resulting from execution of malicious content in the trusted web page context. It is a Candidate Recommendation of the W3C working group on Web Application Security, widely supported by modern web browsers. CSP provides a standard method for website owners to declare approved origins of content that browsers should be allowed to load on that website—covered types are JavaScript, CSS, HTML frames, web workers, fonts, images, embeddable objects such as Java applets, ActiveX, audio and video files, and other HTML5 features.