26 February 2003

Appendix C: ECMAScript Language Binding

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

Properties of the DOMImplementationLS Constructor function:
DOMImplementationLS.MODE_SYNCHRONOUS
The value of the constant DOMImplementationLS.MODE_SYNCHRONOUS is 1.
DOMImplementationLS.MODE_ASYNCHRONOUS
The value of the constant DOMImplementationLS.MODE_ASYNCHRONOUS is 2.
Objects that implement the DOMImplementationLS interface:
Functions of objects that implement the DOMImplementationLS interface:
createDOMBuilder(mode, schemaType)
This function returns an object that implements the DOMBuilder interface.
The mode parameter is a Number.
The schemaType parameter is a String.
This function can raise an object that implements the DOMException interface.
createDOMWriter()
This function returns an object that implements the DOMWriter interface.
createDOMInputSource()
This function returns an object that implements the DOMInputSource interface.
Properties of the DOMBuilder Constructor function:
DOMBuilder.ACTION_APPEND_AS_CHILDREN
The value of the constant DOMBuilder.ACTION_APPEND_AS_CHILDREN is 1.
DOMBuilder.ACTION_REPLACE_CHILDREN
The value of the constant DOMBuilder.ACTION_REPLACE_CHILDREN is 2.
DOMBuilder.ACTION_INSERT_BEFORE
The value of the constant DOMBuilder.ACTION_INSERT_BEFORE is 3.
DOMBuilder.ACTION_INSERT_AFTER
The value of the constant DOMBuilder.ACTION_INSERT_AFTER is 4.
DOMBuilder.ACTION_REPLACE
The value of the constant DOMBuilder.ACTION_REPLACE is 5.
Objects that implement the DOMBuilder interface:
Properties of objects that implement the DOMBuilder interface:
config
This read-only property is an object that implements the DOMConfiguration interface.
filter
This property is an object that implements the DOMBuilderFilter interface.
async
This read-only property is a Boolean.
busy
This read-only property is a Boolean.
Functions of objects that implement the DOMBuilder interface:
parse(is)
This function returns an object that implements the Document interface.
The is parameter is an object that implements the DOMInputSource interface.
This function can raise an object that implements the DOMException interface.
parseURI(uri)
This function returns an object that implements the Document interface.
The uri parameter is a String.
This function can raise an object that implements the DOMException interface.
parseWithContext(is, cnode, action)
This function returns an object that implements the Node interface.
The is parameter is an object that implements the DOMInputSource interface.
The cnode parameter is an object that implements the Node interface.
The action parameter is a Number.
This function can raise an object that implements the DOMException interface.
abort()
This function has no return value.
Objects that implement the DOMInputSource interface:
Properties of objects that implement the DOMInputSource interface:
byteStream
This property is an object that implements the Object interface.
stringData
This property is a String.
encoding
This property is a String.
publicId
This property is a String.
systemId
This property is a String.
baseURI
This property is a String.
Objects that implement the DOMEntityResolver interface:
Functions of objects that implement the DOMEntityResolver interface:
resolveEntity(publicId, systemId, baseURI)
This function returns an object that implements the DOMInputSource interface.
The publicId parameter is a String.
The systemId parameter is a String.
The baseURI parameter is a String.
Properties of the DOMBuilderFilter Constructor function:
DOMBuilderFilter.FILTER_ACCEPT
The value of the constant DOMBuilderFilter.FILTER_ACCEPT is 1.
DOMBuilderFilter.FILTER_REJECT
The value of the constant DOMBuilderFilter.FILTER_REJECT is 2.
DOMBuilderFilter.FILTER_SKIP
The value of the constant DOMBuilderFilter.FILTER_SKIP is 3.
DOMBuilderFilter.FILTER_INTERRUPT
The value of the constant DOMBuilderFilter.FILTER_INTERRUPT is 4.
Objects that implement the DOMBuilderFilter interface:
Properties of objects that implement the DOMBuilderFilter interface:
whatToShow
This read-only property is a Number.
Functions of objects that implement the DOMBuilderFilter interface:
startElement(elt)
This function returns a Number.
The elt parameter is an object that implements the Element interface.
acceptNode(enode)
This function returns a Number.
The enode parameter is an object that implements the Node interface.
Objects that implement the LSProgressEvent interface:
Objects that implement the LSProgressEvent interface have all properties and functions of the Event interface as well as the properties and functions defined below.
Properties of objects that implement the LSProgressEvent interface:
inputSource
This read-only property is an object that implements the DOMInputSource interface.
position
This read-only property is a Number.
totalSize
This read-only property is a Number.
Objects that implement the LSLoadEvent interface:
Objects that implement the LSLoadEvent interface have all properties and functions of the Event interface as well as the properties and functions defined below.
Properties of objects that implement the LSLoadEvent interface:
newDocument
This read-only property is an object that implements the Document interface.
inputSource
This read-only property is an object that implements the DOMInputSource interface.
Objects that implement the DOMWriter interface:
Properties of objects that implement the DOMWriter interface:
config
This read-only property is an object that implements the DOMConfiguration interface.
encoding
This property is a String.
newLine
This property is a String.
filter
This property is an object that implements the DOMWriterFilter interface.
Functions of objects that implement the DOMWriter interface:
writeNode(destination, wnode)
This function returns a Boolean.
The destination parameter is an object that implements the Object interface.
The wnode parameter is an object that implements the Node interface.
writeToString(wnode)
This function returns a String.
The wnode parameter is an object that implements the Node interface.
This function can raise an object that implements the DOMException interface.
Objects that implement the DOMWriterFilter interface:
Objects that implement the DOMWriterFilter interface have all properties and functions of the NodeFilter interface as well as the properties and functions defined below.
Properties of objects that implement the DOMWriterFilter interface:
whatToShow
This read-only property is a Number.
Objects that implement the DocumentLS interface:
Properties of objects that implement the DocumentLS interface:
async
This property is a Boolean and can raise an object that implements DOMException interface on setting.
Functions of objects that implement the DocumentLS interface:
abort()
This function has no return value.
load(uri)
This function returns a Boolean.
The uri parameter is a String.
loadXML(source)
This function returns a Boolean.
The source parameter is a String.
saveXML(snode)
This function returns a String.
The snode parameter is an object that implements the Node interface.
This function can raise an object that implements the DOMException interface.
Objects that implement the ElementLS interface:
Properties of objects that implement the ElementLS interface:
markupContent
This property is a String.