Style/HTML utility function changes
The Style and DOM APIs in 0.9 are completely gutted and replaced. There is common code with 0.4.x methods, but the API surface area has been drastically changed in order to promote comprehensibility and execution speed.
in base dojo:
- dojo.createElement
- dojo.place
- dojo.getComputedStyle
- dojo.style
- dojo.marginBox
- dojo.contentBox
- dojo.coords
- dojo.hasClass
- dojo.addClass
- dojo.removeClass
One brief/important note: all styles are 'camelCased' when being referenced in passed parameters. multi-word styles are treated as they would be in JS, eg: letterSpacing, lineHeight, borderTop, et al.
These functions have been moved to dijit:
- dojo.html.getViewport, dojo.html.getScroll → results combined in dijit.getViewport (_base/place.js)
- dojo.html.placeOnScreen → dijit.placeOnScreen
- dojo.html.placeOnScreenAroundElement → dijit.placeOnScreenAroundElement
- dojo.html.scrollIntoView → dijit.scrollIntoView
- dojo.html.isLeftToRight → Widget.isLeftToRight
- dojo.html.applyBrowserClass → dojo.require("dijit._base.sniff"); (merely including dijit.dijit includes this resources which then automatically applies the class to the <html> tag)
- dojo.html.getDocumentWindow → dijit.getDocumentWindow
Browser detection
dojo.render.html.* methods have changed.
available, suported browsers are:
- dojo.isSafari
- dojo.isIE
- dojo.isFF
- dojo.isKhtml
- dojo.isOpera
- dojo.isMoz and dojo.isMozilla