Class BrowserFlavor

Defined in flavors.js

BrowserFlavor defines a version of XBLinJS for a conventional HTML browser. IE6 and Mozilla are tested, others are not but should probably go here.

It is possible that if cross-browser becomes too much to deal with, that we will actually create MozillaBrowserFlavor or IEFlavor, and dynamically select which flavor is the BrowserFlavor at runtime. Regardless, if you choose BrowserFlavor, you should get what you're looking for in your code.


Field Summary
 Object flavorConstants
          Browser constants
 Object flavorFixups
          Browser fixups
 
Constructor Summary
BrowserFlavor ()
            BrowserFlavor - conventional browser flavor for XBLinJS
 
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 an attribute from a node, be it Widget or DOM node
 Object getElementsByTagName(tagName, node)
          
 void setAttributeOn(node, key, value)
           Set an attribute on the node, be it Widget or DOM node

Field Detail

flavorConstants

Object flavorConstants

flavorFixups

Object flavorFixups

Constructor Detail

BrowserFlavor

BrowserFlavor()

Method Detail

attachHandlerToNode

void attachHandlerToNode(node, event, handler)

createElement

Object createElement(nodeType)

getAttributeFrom

Object getAttributeFrom(node, key)

getElementsByTagName

Object getElementsByTagName(tagName, node)

setAttributeOn

void setAttributeOn(node, key, value)


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