Contenido: DOM Núcleo. DOM HTML. DOM Vistas. DOM Eventos. DOM Hojas de estilo. DOM CSS. DOM Navegación. DOM Rango.
Esta página es un resumen de las distintas especificaciones del Modelo de Objetos de Documento publicadas por el World Wide Web Consortium (W3C), las cuales pueden encontrase en http://www.w3.org/DOM/DOMTR.
DOM Núcleo
Tipos de nodo
- Document,
- DocumentFragment,
- DocumentType,
- EntityReference,
- Element,
- Attr,
- ProcessingInstruction,
- Comment,
- Text,
- CDATASection,
- Entity,
- Notation.
Interfaces fundamentales
- DOMException
- Códigos:
- INDEX_SIZE_ERR,
- DOMSTRING_SIZE_ERR,
- HIERARCHY_REQUEST_ERR,
- WRONG_DOCUMENT_ERR,
- INVALID_CHARACTER_ERR,
- NO_DATA_ALLOWED_ERR,
- NO_MODIFICATION_ALLOWED_ERR,
- NOT_FOUND_ERR,
- NOT_SUPPORTED_ERR,
- INUSE_ATTRIBUTE_ERR,
- INVALID_STATE_ERR (n2),
- SYNTAX_ERR (n2),
- INVALID_MODIFICATION_ERR (n2),
- NAMESPACE_ERR (n2),
- INVALID_ACCESS_ERR (n2).
- Atributos:
- Métodos:
- DOMImplementation
- Atributos:
- Métodos:
- hasFeature,
- createDocumentType (n2),
- createDocument (n2).
- DocumentFragment
- Document
- Atributos:
- doctype,
- implementation,
- documentElement.
- Métodos:
- createElement,
- createDocumentFragment,
- createTextNode,
- createComment,
- createCDATASection,
- createProcessingInstruction,
- createAttribute,
- createEntityReference,
- getElementsByTagName,
- importNode (n2),
- createElementNS (n2),
- createAttributeNS (n2),
- getElementsByTagNameNS (n2),
- getElementById (n2).
- Node
- Constantes:
- ELEMENT_NODE,
- ATTRIBUTE_NODE,
- TEXT_NODE,
- CDATA_SECTION_NODE,
- ENTITY_REFERENCE_NODE,
- ENTITY_NODE,
- PROCESSING_INSTRUCTION_NODE,
- COMMENT_NODE, DOCUMENT_NODE,
- DOCUMENT_TYPE_NODE,
- DOCUMENT_FRAGMENT_NODE,
- NOTATION_NODE.
- Atributos:
- nodeName,
- nodeValue,
- nodeType,
- parentNode,
- childNodes,
- firstChild,
- lastChild,
- previousSibling,
- nextSibling,
- attributes,
- ownerDocument,
- namespaceURI (n2),
- prefix (n2),
- localName (n2).
- Métodos:
- insertBefore,
- replaceChild,
- removeChild,
- appendChild,
- hasChildNodes,
- cloneNode,
- isSupported (n2),
- hasAttributes (n2),
- normalize (n2).
- NodeList
- NamedNodeMap
- Atributos:
- Métodos:
- getNamedItem,
- setNamedItem,
- removeNamedItem,
- item,
- getNamedItemNS (n2),
- setNamedItemNS (n2),
- removeNamedItemNS (n2).
- CharacterData
- Atributos:
- Métodos:
- substringData,
- appendData,
- insertData,
- deleteData,
- replaceData.
- Attr
- Atributos:
- name,
- specified,
- value,
- ownerElement (n2).
- Métodos:
- Element
- Atributos:
- Métodos:
- getAttribute,
- setAttribute,
- removeAttribute,
- getAttributeNode,
- setAttributeNode,
- removeAttributeNode,
- getElementsByTagName,
- normalize (n1),
- getAttributeNS (n2),
- setAttributeNS (n2),
- removeAttributeNS (n2),
- getAttributeNodeNS (n2),
- setAttributeNodeNS (n2),
- getElementsByTagNameNS (n2),
- hasAttribute (n2),
- hasAttributeNS (n2).
- Text
- Comment
Interfaces extendidas
- CDATASection
- DocumentType
- Atributos:
- name,
- entities,
- notations,
- publicId (n2),
- systemId (n2),
- internalSubset (n2).
- Métodos:
- Notation
- Entity
- Atributos:
- publicId,
- systemId,
- notationName.
- Métodos:
- EntityReference
- ProcessingInstruction
n2: Incluido en el nivel 2.
n1: Presente en el nivel 1, pero eliminado en el nivel 2.
DOM HTML
Interfaces
- HTMLCollection
- HTMLOptionsCollection (n2)
- HTMLDocument
- Atributos:
- title,
- referrer,
- domain,
- URL,
- body,
- images,
- applets,
- links,
- forms,
- anchors,
- cookie.
- Métodos:
- open,
- close,
- write,
- writeln,
- getElementById (n1),
- getElementsByName.
- HTMLElement
- Atributos:
- id,
- title,
- lang,
- dir,
- className.
- Métodos:
- HTMLHtmlElement
- HTMLHeadElement
- HTMLLinkElement
- Atributos:
- disabled,
- charset,
- href,
- hreflang,
- media,
- rel,
- rev,
- target (D),
- type.
- Métodos:
- HTMLTitleElement
- HTMLMetaElement
- Atributos:
- content,
- httpEquiv,
- name,
- scheme.
- Métodos:
- HTMLBaseElement
- HTMLIsIndexElement (D)
- HTMLStyleElement
- HTMLBodyElement
- Atributos:
- aLink (D),
- background (D),
- bgColor (D),
- link (D),
- text (D),
- vLink (D).
- Métodos:
- HTMLFormElement
- Atributos:
- elements,
- length,
- name,
- acceptCharset,
- action,
- enctype,
- method,
- target (D).
- Métodos:
- HTMLSelectElement
- Atributos:
- type,
- selectedIndex,
- value,
- length,
- form,
- options,
- disabled,
- multiple,
- name,
- size,
- tabIndex.
- Métodos:
- add,
- remove,
- blur,
- focus.
- HTMLOptGroupElement
- HTMLOptionElement
- Atributos:
- form,
- defaultSelected,
- text,
- index,
- disabled,
- label,
- selected,
- value.
- Métodos:
- HTMLInputElement
- Atributos:
- defaultValue,
- defaultChecked,
- form,
- accept,
- accessKey,
- align (D),
- alt,
- checked,
- disabled,
- maxLength,
- name,
- readOnly,
- size,
- src,
- tabIndex,
- type,
- useMap,
- value.
- Métodos:
- blur,
- focus,
- select,
- click.
- HTMLTextAreaElement
- Atributos:
- defaultValue,
- form,
- accessKey,
- cols,
- disabled,
- name,
- readOnly,
- rows,
- tabIndex,
- type,
- value.
- Métodos:
- HTMLButtonElement
- Atributos:
- form,
- accessKey,
- disabled,
- name,
- tabIndex,
- type,
- value.
- Métodos:
- HTMLLabelElement
- Atributos:
- form,
- accessKey,
- htmlFor.
- Métodos:
- HTMLFieldSetElement
- HTMLLegendElement
- Atributos:
- form,
- accessKey,
- align (D).
- Métodos:
- HTMLUListElement
- HTMLOListElement
- Atributos:
- compact (D),
- start (D),
- type (D).
- Métodos:
- HTMLDListElement
- HTMLDirectoryElement (D)
- HTMLMenuElement (D)
- HTMLLIElement
- HTMLDivElement
- HTMLParagraphElement
- HTMLHeadingElement
- HTMLQuoteElement
- HTMLPreElement
- HTMLBRElement
- HTMLBaseFontElement (D)
- Atributos:
- color (D),
- face (D),
- size (D).
- Métodos:
- HTMLFontElement (D)
- Atributos:
- color (D),
- face (D),
- size (D).
- Métodos:
- HTMLHRElement
- Atributos:
- align (D),
- noShade (D),
- size (D),
- width (D).
- Métodos:
- HTMLModElement
- HTMLAnchorElement
- Atributos:
- accessKey,
- charset,
- coords,
- href,
- hreflang,
- name (D),
- rel,
- rev,
- shape,
- tabIndex,
- target (D),
- type.
- Métodos:
- HTMLImageElement
- Atributos:
- lowSrc (n1)(D),
- name (D),
- align (D),
- alt,
- border (D),
- height,
- hspace (D),
- isMap,
- longDesc,
- src,
- useMap,
- vspace (D),
- width.
- Métodos:
- HTMLObjectElement
- Atributos:
- form (n1),
- code,
- align,
- archive,
- border (D),
- codeBase,
- codeType,
- data,
- declare,
- height,
- hspace (D),
- name (D),
- standby,
- tabIndex,
- type,
- useMap,
- vspace (D),
- width,
- contentDocument (n2).
- Métodos:
- HTMLParamElement
- Atributos:
- name,
- type,
- value,
- valueType.
- Métodos:
- HTMLAppletElement (D)
- Atributos:
- align (D),
- alt (D),
- archive (D),
- code (D),
- codeBase (D),
- height (D),
- hspace (D),
- name (D),
- object (D),
- vspace (D),
- width (D).
- Métodos:
- HTMLMapElement
- HTMLAreaElement
- Atributos:
- accessKey,
- alt,
- coords,
- href,
- noHref,
- shape,
- tabIndex,
- target.
- Métodos:
- HTMLScriptElement
- Atributos:
- text,
- htmlFor,
- event,
- charset,
- defer,
- src,
- type.
- Métodos:
- HTMLTableElement
- Atributos:
- caption,
- tHead,
- tFoot,
- rows,
- tBodies,
- align (D),
- bgColor (D),
- border (D),
- cellPadding,
- cellSpacing,
- frame,
- rules,
- summary,
- width.
- Métodos:
- createTHead,
- deleteTHead,
- createTFoot,
- deleteTFoot,
- createCaption,
- deleteCaption,
- insertRow,
- deleteRow.
- HTMLTableCaptionElement
- HTMLTableColElement
- Atributos:
- align (D),
- ch,
- chOff,
- span,
- vAlign (D),
- width.
- Métodos:
- HTMLTableSectionElement
- Atributos:
- align (D),
- ch,
- chOff,
- vAlign (D),
- rows.
- Métodos:
- HTMLTableRowElement
- Atributos:
- rowIndex,
- sectionRowIndex,
- cells,
- align (D),
- bgColor (D),
- ch,
- chOff,
- vAlign (D).
- Métodos:
- HTMLTableCellElement
- Atributos:
- cellIndex,
- abbr,
- align (D),
- axis,
- bgColor,
- ch,
- chOff,
- colSpan,
- headers,
- height (D),
- noWrap (D),
- rowSpan,
- scope,
- vAlign (D),
- width (D).
- Métodos:
- HTMLFrameSetElement (D)
- HTMLFrameElement (D)
- Atributos:
- frameBorder (D),
- longDesc,
- marginHeight (D),
- marginWidth (D),
- name,
- noResize,
- scrolling (D),
- src,
- contentDocument (n2).
- Métodos:
- HTMLIFrameElement (D)
- Atributos:
- align (D),
- frameBorder (D),
- height,
- longDesc,
- marginHeight (D),
- marginWidth (D),
- name,
- scrolling,
- src,
- width,
- contentDocument (n2).
- Métodos:
n2: Incluido en el nivel 2.
n1: Presente en el nivel 1, pero eliminado en el nivel 2.
D: Interfaz o atributo desaprobado para algunas versiones de HTML o XHTML.
DOM Vistas
Interfaces
DOM Eventos
Interfaces
- EventTarget
- Atributos:
- Métodos:
- addEventListener,
- dispatchEvent,
- removeEventListener.
- EventListener
- Event
- Constantes:
- AT_TARGET,
- BUBBLING_PHASE,
- CAPTURING_PHASE.
- Atributos:
- bubbles,
- cancelable,
- currentTarget,
- eventPhase,
- target,
- timeStamp,
- type.
- Métodos:
- initEvent,
- preventDefault,
- stopPropagation.
- EventException
- Constantes:
- UNSPECIFIED_EVENT_TYPE_ERR .
- DocumentEvent
- UIEvent
- Tipos de evento:
- DOMFocusIn,
- DOMFocusOut,
- DOMActivate.
- Atributos:
- Métodos:
- MouseEvent
- Tipos de evento:
- click,
- mousedown,
- mouseup,
- mouseover,
- mousemove,
- mouseout.
- Atributos:
- altKey,
- button,
- clientX,
- clientY,
- ctrlKey,
- metaKey,
- relatedTarget,
- screenX,
- screenY,
- shiftKey.
- Métodos:
- MutationEvent
- Tipos de evento:
- DOMSubtreeModified,
- DOMNodeInserted,
- DOMNodeRemoved,
- DOMNodeRemovedFromDocument,
- DOMNodeInsertedIntoDocument,
- DOMAttrModified,
- DOMCharacterDataModified.
- Atributos:
- attrChange,
- attrName,
- newValue,
- prevValue,
- relatedNode.
- Métodos:
Tipos de evento HTML
- load,
- unload,
- abort,
- error,
- select,
- change,
- submit,
- reset,
- focus,
- blur,
- resize,
- scroll.
DOM Hojas de estilo
Interfaces
- StyleSheet
- Atributos:
- disabled,
- href,
- media,
- ownerNode,
- parentStyleSheet,
- title,
- type.
- Métodos:
- StyleSheetList
- MediaList
- Atributos:
- Métodos:
- appendMedium,
- deleteMedium,
- item.
- LinkStyle
- DocumentStyle
DOM CSS
Interfaces fundamentales
- CSSStyleSheet
- CSSRuleList
- CSSRule
- Constantes:
- UNKNOWN_RULE,
- STYLE_RULE,
- CHARSET_RULE,
- IMPORT_RULE,
- MEDIA_RULE,
- FONT_FACE_RULE,
- PAGE_RULE.
- Atributos:
- cssText,
- parentRule,
- parentStyleSheet,
- type.
- Métodos:
- CSSStyleRule
- CSSMediaRule
- CSSFontFaceRule
- CSSPageRule
- CSSImportRule
- CSSCharsetRule
- CSSUnknownRule
- CSSStyleDeclaration
- Atributos:
- cssText,
- length,
- parentRule.
- Métodos:
- getPropertyCSSValue,
- getPropertyPriority,
- getPropertyValue,
- item,
- removeProperty,
- setProperty.
- CSSValue
- Constantes:
- CSS_INHERIT,
- CSS_PRIMITIVE_VALUE,
- CSS_VALUE_LIST,
- CSS_CUSTOM.
- Atributos:
- Métodos:
- CSSPrimitiveValue
- Constantes:
- CSS_UNKNOWN,
- CSS_NUMBER,
- CSS_PERCENTAGE,
- CSS_EMS,
- CSS_EXS,
- CSS_PX,
- CSS_CM,
- CSS_MM,
- CSS_IN,
- CSS_PT,
- CSS_PC,
- CSS_DEG,
- CSS_RAD,
- CSS_GRAD,
- CSS_MS,
- CSS_S ,
- CSS_HZ,
- CSS_KHZ,
- CSS_DIMENSION,
- CSS_STRING,
- CSS_URI,
- CSS_IDENT,
- CSS_ATTR,
- CSS_COUNTER,
- CSS_RECT,
- CSS_RGBCOLOR.
- Atributos:
- Métodos:
- getCounterValue,
- getFloatValue,
- getRGBColorValue,
- getRectValue,
- getStringValue,
- setFloatValue,
- setStringValue.
- CSSValueList
- RGBColor
- Rect
- Atributos:
- bottom,
- left,
- right,
- top.
- Métodos:
- Counter
- Atributos:
- identifier,
- listStyle,
- separator.
- Métodos:
- ViewCSS
- DocumentCSS
- DOMImplementationCSS
- ElementCSSInlineStyle
Interfaz extendida
- CSS2Properties
- Atributos:
- azimuth,
- background,
- backgroundAttachment,
- backgroundColor,
- backgroundImage,
- backgroundPosition,
- backgroundRepeat,
- border,
- borderCollapse,
- borderColor,
- borderSpacing,
- borderStyle,
- borderTop,
- borderRight,
- borderBottom,
- borderLeft,
- borderTopColor,
- borderRightColor,
- borderBottomColor,
- borderLeftColor,
- borderTopStyle,
- borderRightStyle,
- borderBottomStyle,
- borderLeftStyle,
- borderTopWidth,
- borderRightWidth,
- borderBottomWidth,
- borderLeftWidth,
- borderWidth,
- bottom,
- captionSide,
- clear,
- clip,
- color,
- content,
- counterIncrement,
- counterReset,
- cue,
- cueAfter,
- cueBefore,
- cursor,
- direction,
- display,
- elevation,
- emptyCells,
- cssFloat,
- font,
- fontFamily,
- fontSize,
- fontSizeAdjust,
- fontStretch,
- fontStyle,
- fontVariant,
- fontWeight,
- height,
- left,
- letterSpacing,
- lineHeight,
- listStyle,
- listStyleImage,
- listStylePosition,
- listStyleType,
- margin,
- marginTop,
- marginRight,
- marginBottom,
- marginLeft,
- markerOffset,
- marks,
- maxHeight,
- maxWidth,
- minHeight,
- minWidth,
- orphans,
- outline,
- outlineColor,
- outlineStyle,
- outlineWidth,
- overflow,
- padding,
- paddingTop,
- paddingRight,
- paddingBottom,
- paddingLeft,
- page,
- pageBreakAfter,
- pageBreakBefore,
- pageBreakInside,
- pause,
- pauseAfter,
- pauseBefore,
- pitch,
- pitchRange,
- playDuring,
- position,
- quotes,
- richness,
- right,
- size,
- speak,
- speakHeader,
- speakNumeral,
- speakPunctuation,
- speechRate,
- stress,
- tableLayout,
- textAlign,
- textDecoration,
- textIndent,
- textShadow,
- textTransform,
- top,
- unicodeBidi,
- verticalAlign,
- visibility,
- voiceFamily,
- volume,
- whiteSpace,
- widows,
- width,
- wordSpacing,
- zIndex.
- Métodos:
DOM Navegación
Interfaces
- NodeIterator
- Atributos:
- expandEntityReferences,
- filter,
- root,
- whatToShow.
- Métodos:
- detach,
- nextNode,
- previousNode.
- NodeFilter
- Constantes acceptNode:
- FILTER_ACCEPT,
- FILTER_REJECT,
- FILTER_SKIP.
- Constantes whatToShow:
- SHOW_ALL,
- SHOW_ELEMENT,
- SHOW_ATTRIBUTE,
- SHOW_TEXT,
- SHOW_CDATA_SECTION,
- SHOW_ENTITY_REFERENCE,
- SHOW_ENTITY,
- SHOW_PROCESSING_INSTRUCTION,
- SHOW_COMMENT,
- SHOW_DOCUMENT,
- SHOW_DOCUMENT_TYPE,
- SHOW_DOCUMENT_FRAGMENT,
- SHOW_NOTATION.
- Atributos:
- Métodos:
- TreeWalker
- Atributos:
- currentNode,
- expandEntityReferences,
- filter,
- root,
- whatToShow.
- Métodos:
- firstChild,
- lastChild,
- nextNode,
- nextSibling,
- parentNode,
- previousNode,
- previousSibling.
- DocumentTraversal
- Atributos:
- Métodos:
- createNodeIterator,
- createTreeWalker.
DOM Rango
Interfaces
- Range
- Constantes:
- END_TO_END,
- END_TO_START,
- START_TO_END,
- START_TO_START.
- Atributos:
- collapsed,
- commonAncestorContainer,
- endContainer,
- endOffset,
- startContainer,
- startOffset.
- Métodos:
- cloneContents,
- cloneRange,
- collapse,
- compareBoundaryPoints,
- deleteContents,
- detach,
- extractContents,
- insertNode,
- selectNode,
- selectNodeContents,
- setEnd,
- setEndAfter,
- setEndBefore,
- setStart,
- setStartAfter,
- setStartBefore,
- surroundContents,
- toString.
- DocumentRange
28/10/2002. sysifus. Recorte nº 8.