27 January 2004

Appendix D: ECMAScript Language Binding

This appendix contains the complete ECMAScript [ECMAScript] binding for the Level 3 Document Object Model Validation definitions.

Properties of the ExceptionVAL Constructor function:
ExceptionVAL.NO_SCHEMA_AVAILABLE_ERR
The value of the constant ExceptionVAL.NO_SCHEMA_AVAILABLE_ERR is 71.
Objects that implement the ExceptionVAL interface:
Properties of objects that implement the ExceptionVAL interface:
code
This property is a Number.
Objects that implement the DocumentEditVAL interface:
Objects that implement the DocumentEditVAL interface have all properties and functions of the NodeEditVAL interface as well as the properties and functions defined below.
Properties of objects that implement the DocumentEditVAL interface:
continuousValidityChecking
This property is a Boolean and can raise an object that implements the DOMException interface or the ExceptionVAL interface or the DOMException interface on setting.
domConfig
This read-only property is an object that implements the DOMConfiguration interface.
Functions of objects that implement the DocumentEditVAL interface:
getDefinedElements(namespaceURI)
This function returns an object that implements the NameList interface.
The namespaceURI parameter is a String.
validateDocument()
This function returns a Number.
Properties of the NodeEditVAL Constructor function:
NodeEditVAL.VAL_WF
The value of the constant NodeEditVAL.VAL_WF is 1.
NodeEditVAL.VAL_NS_WF
The value of the constant NodeEditVAL.VAL_NS_WF is 2.
NodeEditVAL.VAL_INCOMPLETE
The value of the constant NodeEditVAL.VAL_INCOMPLETE is 3.
NodeEditVAL.VAL_SCHEMA
The value of the constant NodeEditVAL.VAL_SCHEMA is 4.
NodeEditVAL.VAL_TRUE
The value of the constant NodeEditVAL.VAL_TRUE is 5.
NodeEditVAL.VAL_FALSE
The value of the constant NodeEditVAL.VAL_FALSE is 6.
NodeEditVAL.VAL_UNKNOWN
The value of the constant NodeEditVAL.VAL_UNKNOWN is 7.
Objects that implement the NodeEditVAL interface:
Properties of objects that implement the NodeEditVAL interface:
defaultValue
This read-only property is a String.
enumeratedValues
This read-only property is an object that implements the DOMStringList interface.
Functions of objects that implement the NodeEditVAL interface:
canInsertBefore(newChild, refChild)
This function returns a Number.
The newChild parameter is an object that implements the Node interface.
The refChild parameter is an object that implements the Node interface.
canRemoveChild(oldChild)
This function returns a Number.
The oldChild parameter is an object that implements the Node interface.
canReplaceChild(newChild, oldChild)
This function returns a Number.
The newChild parameter is an object that implements the Node interface.
The oldChild parameter is an object that implements the Node interface.
canAppendChild(newChild)
This function returns a Number.
The newChild parameter is an object that implements the Node interface.
nodeValidity(valType)
This function returns a Number.
The valType parameter is a Number.
Properties of the ElementEditVAL Constructor function:
ElementEditVAL.VAL_EMPTY_CONTENTTYPE
The value of the constant ElementEditVAL.VAL_EMPTY_CONTENTTYPE is 1.
ElementEditVAL.VAL_ANY_CONTENTTYPE
The value of the constant ElementEditVAL.VAL_ANY_CONTENTTYPE is 2.
ElementEditVAL.VAL_MIXED_CONTENTTYPE
The value of the constant ElementEditVAL.VAL_MIXED_CONTENTTYPE is 3.
ElementEditVAL.VAL_ELEMENTS_CONTENTTYPE
The value of the constant ElementEditVAL.VAL_ELEMENTS_CONTENTTYPE is 4.
ElementEditVAL.VAL_SIMPLE_CONTENTTYPE
The value of the constant ElementEditVAL.VAL_SIMPLE_CONTENTTYPE is 5.
Objects that implement the ElementEditVAL interface:
Objects that implement the ElementEditVAL interface have all properties and functions of the NodeEditVAL interface as well as the properties and functions defined below.
Properties of objects that implement the ElementEditVAL interface:
allowedChildren
This read-only property is an object that implements the NameList interface.
allowedFirstChildren
This read-only property is an object that implements the NameList interface.
allowedParents
This read-only property is an object that implements the NameList interface.
allowedNextSiblings
This read-only property is an object that implements the NameList interface.
allowedPreviousSiblings
This read-only property is an object that implements the NameList interface.
allowedAttributes
This read-only property is an object that implements the NameList interface.
requiredAttributes
This read-only property is an object that implements the NameList interface.
contentType
This read-only property is a Number.
Functions of objects that implement the ElementEditVAL interface:
canSetTextContent(possibleTextContent)
This function returns a Number.
The possibleTextContent parameter is a String.
canSetAttribute(attrname, attrval)
This function returns a Number.
The attrname parameter is a String.
The attrval parameter is a String.
canSetAttributeNode(attrNode)
This function returns a Number.
The attrNode parameter is an object that implements the Attr interface.
canSetAttributeNS(namespaceURI, qualifiedName, value)
This function returns a Number.
The namespaceURI parameter is a String.
The qualifiedName parameter is a String.
The value parameter is a String.
canRemoveAttribute(attrname)
This function returns a Number.
The attrname parameter is a String.
canRemoveAttributeNS(namespaceURI, localName)
This function returns a Number.
The namespaceURI parameter is a String.
The localName parameter is a String.
canRemoveAttributeNode(attrNode)
This function returns a Number.
The attrNode parameter is an object that implements the Node interface.
isElementDefined(name)
This function returns a Number.
The name parameter is a String.
isElementDefinedNS(namespaceURI, name)
This function returns a Number.
The namespaceURI parameter is a String.
The name parameter is a String.
Objects that implement the CharacterDataEditVAL interface:
Objects that implement the CharacterDataEditVAL interface have all properties and functions of the NodeEditVAL interface as well as the properties and functions defined below.
Functions of objects that implement the CharacterDataEditVAL interface:
isWhitespaceOnly()
This function returns a Number.
canSetData(arg)
This function returns a Number.
The arg parameter is a String.
canAppendData(arg)
This function returns a Number.
The arg parameter is a String.
canReplaceData(offset, count, arg)
This function returns a Number.
The offset parameter is a Number.
The count parameter is a Number.
The arg parameter is a String.
This function can raise an object that implements the DOMException interface.
canInsertData(offset, arg)
This function returns a Number.
The offset parameter is a Number.
The arg parameter is a String.
This function can raise an object that implements the DOMException interface.
canDeleteData(offset, count)
This function returns a Number.
The offset parameter is a Number.
The count parameter is a Number.
This function can raise an object that implements the DOMException interface.