![]() RemoveChild has to know how to undo the cache Since insertBefore caches the docElement (and, currently, docType), Registers an identifier name with a specified element node. Uses the kidOK lookup table to check whether the proposedĬheck the string against XML's definition of acceptable names forĮlements and attributes and so on using the XMLCharacterProperties Since a Document may contain at most one top-level Element child,Īnd at most one DocumentType declaraction, we need to subclass ourĪdd-children methods to implement this constraint. Retreive user data related to a given nodeĬopies a node from another document to this document. Object Model (DOM) Level 3 Core Working Draft of 5 June 2001. The Document object associated with this node. Retrieve information describing the abilities of this particular Returns an enumeration registered of identifier names. Identifier name, or null if no element is registered. Returns a previously registered element with the specified Returns true if the DOM implementation performs error checking. ![]() Immediate children) having the specified tag name. ![]() Return a live collection of all descendent Elements (not just Returns the Element whose ID is given by elementId. Which is considered the root of the actual document content. NON-DOM Factory method: creates an element definition.ĬreateElementNS( namespaceURI,įactory method creates an Entity having this DocumentĬreateEntityReference( name)įactory method creates an EntityReference having this Documentįactory method creates a Notation having this DocumentĬreateProcessingInstruction( target,įactory method creates a ProcessingInstruction having this Documentįactory method creates a Text node having this Document as itsįor XML, this provides access to the Document Type Definition.Ĭonvenience method, allowing direct access to the child node Internal method to share code with subclassįactory method creates an Attribute having this Document as itsĬreateAttributeNS( namespaceURI,ĬreateCDATASection( data)įactory method creates a CDATASection having this Document asįactory method creates a Comment having this Document as itsįactory method creates a DocumentFragment having this DocumentĬreateDocumentType( qualifiedName,įactory method creates a DocumentType having this Documentįactory method creates an Element having this DocumentĬreateElementDefinition( name) Returns the number of changes to this node.ĭeep-clone a document, including fixing ownerDoc for the cloned Since it has to operate in terms of a particular implementation.Ĭhange the node's ownerDocument, and its subtree, to this Document NON-DOM: Actually creating a Document is outside the DOM's spec, NodeĪTTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE NodeImplĮLEMENT_DEFINITION_NODE, FIRSTCHILD, flags, HASSTRING, IGNORABLEWS, OWNED, ownerNode, READONLY, SPECIFIED, SYNCCHILDREN, SYNCDATA, UNNORMALIZEDįields inherited from interface. ParentNodeįCachedChild, fCachedChildIndex, fCachedLength, firstChild, ownerDocumentįields inherited from class. Table for quick check of child insertion.Įxperimental DOM Level 3 feature: Document standaloneĮxperimental DOM Level 3 feature: Document versionįields inherited from class. Number of alterations made to this document since its creation.Įxperimental DOM Level 3 feature: Document encoding Version: Author: Arnaud Le Hors, IBM, Joe Kesselman, IBM, Andy Clark, IBM, Ralf Pfeiffer, IBM See Also: Serialized Form Note: When any node in the document is serialized, theĮntire document is serialized along with it. ![]() Additional modulesĪre supported by the more complete DocumentImpl subclass. The CoreDocumentImpl class only implements the DOM Core. Which associates them with the Document within whose context they The Node objects created have a ownerDocument attribute Interface also contains the factory methods needed to create these cannot exist outside the context of a Document, the Document Since elements, text nodes, comments, processing instructions,Įtc. The Document interface represents the entire HTML or XML document.Ĭonceptually, it is the root of the document tree, and provides the Public class CoreDocumentImpl extends ParentNode implements Document +- .CoreDocumentImpl All Implemented Interfaces:, Document, EventTarget, Node, NodeList, java.io.Serializable Direct Known Subclasses: DocumentImpl
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |