xml/ XmlW3CDom.js

Summary
add new className to classCollection
raised when an operation is impossible to perform
provides a number of methods for performing operations that are independent of any particular instance of the document object model.
escape special characters

Functions

addClass

function addClass(classCollectionStr,
newClass)

add new className to classCollection

Author

Jon van Noort (j.nosp@m.on@webarcan.nosp@m.a.com.au)

Parameters

classCollectionStrstring list of existing class names (separated and top and tailed with ‘|’s)
newClassstring new class name to add

Returns

stringthe new classCollection, with new className appended, (separated and top and tailed with ‘|’s)

DOMException

raised when an operation is impossible to perform

Author

Jon van Noort (j.nosp@m.on@webarcan.nosp@m.a.com.au)

Parameters code - int the exception code (one of the DOMException constants)

DOMImplementation

provides a number of methods for performing operations that are independent of any particular instance of the document object model.

Author

Jon van Noort (j.nosp@m.on@webarcan.nosp@m.a.com.au)

Summary

Functions

DOMImplementation. escapeString

escape special characters

Author

Jon van Noort (j.nosp@m.on@webarcan.nosp@m.a.com.au)

Parameters

strstring The string to be escaped

Returns

stringThe escaped string
function addClass(classCollectionStr,
newClass)
add new className to classCollection