Class DOM2Flavor

Defined in flavors.js

DOM2Flavor uses an XML Namespace aware DOM2 implementation with createElementNS, and the DOM2 events model for handling events.

Among possibly other things, this turns XBLinJS into a direct replacement for XBL proper, usable with Mozilla's XUL. DOM2Flavor's constants are preloaded with a couple values that will help with this, including setting XUL's namespace as the default. You may want to change this in your code.


Field Summary
 Object flavorConstants
          flavor constants for DOM2
 Object namespaces
          Namespaces storage for registerNamespace
 
Constructor Summary
DOM2Flavor ()
            DOM2Flavor - XBLinJS flavor for use with XUL applications
 
Method Summary
 void attachHandlerToNode(node, event, handler)
           Attach an event handler to a node
 Object createElement(nodeType)
           create an element
 Object getAttributeFrom(node, key)
           Gets the attribute from a node, be it Widget or DOM node
 Object getElementsByTagName(tagName, node)
          
 void registerNamespace(mnemonic, URI)
           Registration function for namespaces
 Object setAttributeOn(node, key, value)
           Set attribute on the node, be it widget or DOM node

Field Detail

flavorConstants

Object flavorConstants

namespaces

Object namespaces

Constructor Detail

DOM2Flavor

DOM2Flavor()

Method Detail

attachHandlerToNode

void attachHandlerToNode(node, event, handler)

createElement

Object createElement(nodeType)

getAttributeFrom

Object getAttributeFrom(node, key)

getElementsByTagName

Object getElementsByTagName(tagName, node)

registerNamespace

void registerNamespace(mnemonic, URI)

setAttributeOn

Object setAttributeOn(node, key, value)


Documentation generated by JSDoc on Tue May 3 17:16:26 2005