19 June 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:
createDOMParser(mode, schemaType)
This function returns an object that implements the DOMParser interface.
The mode parameter is a Number.
The schemaType parameter is a String.
This function can raise an object that implements the DOMException interface.
createDOMSerializer()
This function returns an object that implements the DOMSerializer interface.
createDOMInput()
This function returns an object that implements the DOMInput interface.
Properties of the DOMParser Constructor function:
DOMParser.ACTION_APPEND_AS_CHILDREN
The value of the constant DOMParser.ACTION_APPEND_AS_CHILDREN is 1.
DOMParser.ACTION_REPLACE_CHILDREN
The value of the constant DOMParser.ACTION_REPLACE_CHILDREN is 2.
DOMParser.ACTION_INSERT_BEFORE
The value of the constant DOMParser.ACTION_INSERT_BEFORE is 3.
DOMParser.ACTION_INSERT_AFTER
The value of the constant DOMParser.ACTION_INSERT_AFTER is 4.
DOMParser.ACTION_REPLACE
The value of the constant DOMParser.ACTION_REPLACE is 5.
Objects that implement the DOMParser interface:
Properties of objects that implement the DOMParser interface:
config
This read-only property is an object that implements the DOMConfiguration interface.
filter
This property is an object that implements the DOMParserFilter interface.
async
This read-only property is a Boolean.
busy
This read-only property is a Boolean.
Functions of objects that implement the DOMParser interface:
parse(is)
This function returns an object that implements the Document interface.
The is parameter is an object that implements the DOMInput 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(input, context, action)
This function returns an object that implements the Node interface.
The input parameter is an object that implements the DOMInput interface.
The context 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 DOMInput interface:
Properties of objects that implement the DOMInput interface:
byteStream
This property is an object that implements the DOMInputStream interface.
stringData
This property is a String.
systemId
This property is a String.
encoding
This property is a String.
publicId
This property is a String.
baseURI
This property is a String.
certified
This property is a Boolean.
Objects that implement the DOMResourceResolver interface:
Functions of objects that implement the DOMResourceResolver interface:
resolveResource(publicId, systemId, baseURI)
This function returns an object that implements the DOMInput interface.
The publicId parameter is a String.
The systemId parameter is a String.
The baseURI parameter is a String.
Properties of the DOMParserFilter Constructor function:
DOMParserFilter.FILTER_ACCEPT
The value of the constant DOMParserFilter.FILTER_ACCEPT is 1.
DOMParserFilter.FILTER_REJECT
The value of the constant DOMParserFilter.FILTER_REJECT is 2.
DOMParserFilter.FILTER_SKIP
The value of the constant DOMParserFilter.FILTER_SKIP is 3.
DOMParserFilter.FILTER_INTERRUPT
The value of the constant DOMParserFilter.FILTER_INTERRUPT is 4.
Objects that implement the DOMParserFilter interface:
Properties of objects that implement the DOMParserFilter interface:
whatToShow
This read-only property is a Number.
Functions of objects that implement the DOMParserFilter interface:
startElement(element)
This function returns a Number.
The element parameter is an object that implements the Element interface.
acceptNode(node)
This function returns a Number.
The node 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:
input
This read-only property is an object that implements the DOMInput 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.
input
This read-only property is an object that implements the DOMInput interface.
Objects that implement the DOMSerializer interface:
Properties of objects that implement the DOMSerializer interface:
config
This read-only property is an object that implements the DOMConfiguration interface.
newLine
This property is a String.
filter
This property is an object that implements the DOMSerializerFilter interface.
Functions of objects that implement the DOMSerializer interface:
write(node, destination)
This function returns a Boolean.
The node parameter is an object that implements the Node interface.
The destination parameter is an object that implements the DOMOutput interface.
writeURI(node, URI)
This function returns a Boolean.
The node parameter is an object that implements the Node interface.
The URI parameter is a String.
writeToString(node)
This function returns a String.
The node parameter is an object that implements the Node interface.
This function can raise an object that implements the DOMException interface.
Objects that implement the DOMOutput interface:
Properties of objects that implement the DOMOutput interface:
byteStream
This property is an object that implements the DOMOutputStream interface.
systemId
This property is a String.
encoding
This property is a String.
Objects that implement the DOMSerializerFilter interface:
Objects that implement the DOMSerializerFilter 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 DOMSerializerFilter 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(node)
This function returns a String.
The node 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.