Updating the W3C DOM documentation.
1) Added HTML Level 1. Xerces apparently wants this, and there's certainly no reason not to have it in xml-commons. 2) Fixed the generated @param comments. The DOM WG's stylesheet for producing Javadoc from their abstract XML markup had a glitch, and did not reliably produce a space between the parameter name and its description. I've submitted that as an erratum, to make sure they fix it. Meanwhile, I've gone through and fixed them all manually. (Not everything could be fixed by simply replacing "The" with " The"; some descriptions start with other words.) I'm an ex-member of the DOM WG, and still on the IG, so feel free to blame me for the fact that this wasn't caught before the DOM shipped ... and for making the change. The fact that these files are no longer byte-for-byte identical with those supplied by the W3C will annoy some folks, but I think it's fairly safe to assume that the DOM WG will accept the erratum. And we definitely want to fix it here rather than having each Apache project patch their own copy. git-svn-id: https://svn.apache.org/repos/asf/xml/commons/trunk@225942 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
530caadd8d
commit
1d6cda7c46
81 files changed
+3665
-450
No files matched your search
+29
-92
@@ -62,7 +62,7 @@ public interface Document extends Node {
|
||||
* @param tagName The name of the element type to instantiate. For XML,
|
||||
* this is case-sensitive. For HTML, the <code>tagName</code>
|
||||
* parameter may be provided in any case, but it must be mapped to the
|
||||
* canonical uppercase form by the DOM implementation.
|
||||
* canonical uppercase form by the DOM implementation.
|
||||
* @return A new <code>Element</code> object with the
|
||||
* <code>nodeName</code> attribute set to <code>tagName</code>, and
|
||||
* <code>localName</code>, <code>prefix</code>, and
|
||||
@@ -75,7 +75,7 @@ public interface Document extends Node {
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an empty <code>DocumentFragment</code> object.
|
||||
* Creates an empty <code>DocumentFragment</code> object.
|
||||
* @return A new <code>DocumentFragment</code>.
|
||||
*/
|
||||
public DocumentFragment createDocumentFragment();
|
||||
@@ -148,7 +148,7 @@ public interface Document extends Node {
|
||||
* node is also unbound; (its <code>namespaceURI</code> is
|
||||
* <code>null</code>). The DOM Level 2 does not support any mechanism to
|
||||
* resolve namespace prefixes.
|
||||
* @param name The name of the entity to reference.
|
||||
* @param name The name of the entity to reference.
|
||||
* @return The new <code>EntityReference</code> object.
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified name contains an
|
||||
@@ -161,7 +161,7 @@ public interface Document extends Node {
|
||||
/**
|
||||
* Returns a <code>NodeList</code> of all the <code>Elements</code> with a
|
||||
* given tag name in the order in which they are encountered in a
|
||||
* preorder traversal of the <code>Document</code> tree.
|
||||
* preorder traversal of the <code>Document</code> tree.
|
||||
* @param tagname The name of the tag to match on. The special value "*"
|
||||
* matches all tags.
|
||||
* @return A new <code>NodeList</code> object containing all the matched
|
||||
@@ -255,7 +255,7 @@ public interface Document extends Node {
|
||||
* types of nodes inheriting from <code>CharacterData</code> copy their
|
||||
* <code>data</code> and <code>length</code> attributes from those of
|
||||
* the source node.</dd>
|
||||
* </dl>
|
||||
*
|
||||
* @param importedNode The node to import.
|
||||
* @param deep If <code>true</code>, recursively import the subtree under
|
||||
* the specified node; if <code>false</code>, import only the node
|
||||
@@ -272,57 +272,28 @@ public interface Document extends Node {
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an element of the given qualified name and namespace URI.
|
||||
* Creates an element of the given qualified name and namespace URI.
|
||||
* HTML-only DOM implementations do not need to implement this method.
|
||||
* @param namespaceURI The namespace URI of the element to create.
|
||||
* @param qualifiedName The qualified name of the element type to
|
||||
* instantiate.
|
||||
* @return A new <code>Element</code> object with the following
|
||||
* attributes:
|
||||
* <table border='1'>
|
||||
* <tr>
|
||||
* <th>Attribute</th>
|
||||
* <th>Value</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.nodeName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.namespaceURI</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>namespaceURI</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.prefix</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>prefix, extracted
|
||||
* attributes:AttributeValue<code>Node.nodeName</code>
|
||||
* <code>qualifiedName</code><code>Node.namespaceURI</code>
|
||||
* <code>namespaceURI</code><code>Node.prefix</code>prefix, extracted
|
||||
* from <code>qualifiedName</code>, or <code>null</code> if there is
|
||||
* no prefix</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.localName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>local name, extracted from
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Element.tagName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* no prefix<code>Node.localName</code>local name, extracted from
|
||||
* <code>qualifiedName</code><code>Element.tagName</code>
|
||||
* <code>qualifiedName</code>
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified qualified name
|
||||
* contains an illegal character, per the XML 1.0 specification .
|
||||
* contains an illegal character.
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||
* malformed per the Namespaces in XML specification, if the
|
||||
* <code>qualifiedName</code> has a prefix and the
|
||||
* malformed, if the <code>qualifiedName</code> has a prefix and the
|
||||
* <code>namespaceURI</code> is <code>null</code>, or if the
|
||||
* <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||
* <code>namespaceURI</code> is different from "
|
||||
* http://www.w3.org/XML/1998/namespace" .
|
||||
* <br>NOT_SUPPORTED_ERR: Always thrown if the current document does not
|
||||
* support the <code>"XML"</code> feature, since namespaces were
|
||||
* defined by XML.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Element createElementNS(String namespaceURI,
|
||||
@@ -330,65 +301,31 @@ public interface Document extends Node {
|
||||
throws DOMException;
|
||||
|
||||
/**
|
||||
* Creates an attribute of the given qualified name and namespace URI.
|
||||
* Creates an attribute of the given qualified name and namespace URI.
|
||||
* HTML-only DOM implementations do not need to implement this method.
|
||||
* @param namespaceURI The namespace URI of the attribute to create.
|
||||
* @param qualifiedName The qualified name of the attribute to
|
||||
* instantiate.
|
||||
* @param qualifiedName The qualified name of the attribute to instantiate.
|
||||
* @return A new <code>Attr</code> object with the following attributes:
|
||||
* <table border='1'>
|
||||
* <tr>
|
||||
* <th>
|
||||
* Attribute</th>
|
||||
* <th>Value</th>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.nodeName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>qualifiedName</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>Node.namespaceURI</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>namespaceURI</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>Node.prefix</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>prefix, extracted from
|
||||
* AttributeValue<code>Node.nodeName</code>qualifiedName
|
||||
* <code>Node.namespaceURI</code><code>namespaceURI</code>
|
||||
* <code>Node.prefix</code>prefix, extracted from
|
||||
* <code>qualifiedName</code>, or <code>null</code> if there is no
|
||||
* prefix</td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.localName</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>local name, extracted from
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Attr.name</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>
|
||||
* <code>qualifiedName</code></td>
|
||||
* </tr>
|
||||
* <tr>
|
||||
* <td valign='top' rowspan='1' colspan='1'><code>Node.nodeValue</code></td>
|
||||
* <td valign='top' rowspan='1' colspan='1'>the empty
|
||||
* string</td>
|
||||
* </tr>
|
||||
* </table>
|
||||
* prefix<code>Node.localName</code>local name, extracted from
|
||||
* <code>qualifiedName</code><code>Attr.name</code>
|
||||
* <code>qualifiedName</code><code>Node.nodeValue</code>the empty
|
||||
* string
|
||||
* @exception DOMException
|
||||
* INVALID_CHARACTER_ERR: Raised if the specified qualified name
|
||||
* contains an illegal character, per the XML 1.0 specification .
|
||||
* contains an illegal character.
|
||||
* <br>NAMESPACE_ERR: Raised if the <code>qualifiedName</code> is
|
||||
* malformed per the Namespaces in XML specification, if the
|
||||
* <code>qualifiedName</code> has a prefix and the
|
||||
* malformed, if the <code>qualifiedName</code> has a prefix and the
|
||||
* <code>namespaceURI</code> is <code>null</code>, if the
|
||||
* <code>qualifiedName</code> has a prefix that is "xml" and the
|
||||
* <code>namespaceURI</code> is different from "
|
||||
* http://www.w3.org/XML/1998/namespace", or if the
|
||||
* <code>qualifiedName</code>, or its prefix, is "xmlns" and the
|
||||
* <code>qualifiedName</code> is "xmlns" and the
|
||||
* <code>namespaceURI</code> is different from "
|
||||
* http://www.w3.org/2000/xmlns/".
|
||||
* <br>NOT_SUPPORTED_ERR: Always thrown if the current document does not
|
||||
* support the <code>"XML"</code> feature, since namespaces were
|
||||
* defined by XML.
|
||||
* @since DOM Level 2
|
||||
*/
|
||||
public Attr createAttributeNS(String namespaceURI,
|
||||
@@ -418,7 +355,7 @@ public interface Document extends Node {
|
||||
* information that says which attributes are of type ID. Attributes
|
||||
* with the name "ID" are not of type ID unless so defined.
|
||||
* Implementations that do not know whether attributes are of type ID or
|
||||
* not are expected to return <code>null</code>.
|
||||
* not are expected to return <code>null</code>.
|
||||
* @param elementId The unique <code>id</code> value for an element.
|
||||
* @return The matching element.
|
||||
* @since DOM Level 2
|
||||
|
||||
Reference in new issue
Block a user