Adds:
I will only show the new methods. Currently, the plan is to
simply add these to the existing Node
interface.
Java binding:
package org.w3c.dom;
public interface Node {
public String getBaseURI();
public static final short TREE_POSITION_PRECEDING = 0x01;
public static final short TREE_POSITION_FOLLOWING = 0x02;
public static final short TREE_POSITION_ANCESTOR = 0x04;
public static final short TREE_POSITION_DESCENDANT = 0x08;
public static final short TREE_POSITION_EQUIVALENT = 0x10;
public static final short TREE_POSITION_SAME_NODE = 0x20;
public static final short TREE_POSITION_DISCONNECTED = 0x00;
public int compareTreePosition(Node other) throws DOMException;
public String getTextContent() throws DOMException;
public void setTextContent(String textContent) throws DOMException;
public Object setUserData(String key, Object data, UserDataHandler handler);
public Object getUserData(String key);
public boolean isSameNode(Node other);
public boolean isEqualNode(Node arg, boolean deep);
public String lookupNamespacePrefix(String namespaceURI);
public String lookupNamespaceURI(String prefix);
public void normalizeNS();
public Node getAs(String feature);
public Object getKey();
}
In IDL:
interface Node {
readonly attribute DOMString baseURI;
const unsigned short TREE_POSITION_PRECEDING = 0x01;
const unsigned short TREE_POSITION_FOLLOWING = 0x02;
const unsigned short TREE_POSITION_ANCESTOR = 0x04;
const unsigned short TREE_POSITION_DESCENDANT = 0x08;
const unsigned short TREE_POSITION_EQUIVALENT = 0x10;
const unsigned short TREE_POSITION_SAME_NODE = 0x20;
const unsigned short TREE_POSITION_DISCONNECTED = 0x00;
unsigned short compareTreePosition(in Node other);
attribute DOMString textContent; // raises(DOMException) on setting
// raises(DOMException) on retrieval
boolean isSameNode(in Node other);
DOMString lookupNamespacePrefix(in DOMString namespaceURI);
DOMString lookupNamespaceURI(in DOMString prefix);
boolean isEqualNode(in Node arg, in boolean deep);
Node getInterface(in DOMString feature);
DOMKeyObject setUserData(in DOMString key, in DOMKeyObject data,
in UserDataHandler handler);
DOMKeyObject getUserData(in DOMString key);
};