stylesheet helpers API
Reported by Diego Perini | 2010-06-08 17:22:17 UTC
Could we get the stylesheets relevant parts separated out from "dom_loaded.js" in their own place, maybe "stylesheet.js" ?
I am talking about all these:
getSheetElements()
getSheetObject()
getStyle()
getSheet()
getRules()
addImports()
addRule()
RemoveRule()
injectRules()
plus adding missing/needed API to have a complete set of tools to directly handle stylesheets rules.
I believe in some circumstance this will be the preferred way to produce changes to multiple elements in a faster more responsive way. We let the browser do all the job for us. I said in some circumstance but thinking about it maybe it would be better in performance also for less complex operations. Maybe some easy way to test this ?
I do not have access to all those Windows developer goodies :)
Comments and changes to this ticket
-

Radoslav Stankov 2010-06-09 03:22:15 UTC
+1
I think stylesheets deserve it own module, like fuse().getSheetObject(...).changeRule() and so, because you could do a powerful things with direct css classes manipulation. And interesting most of the other libs don't take advantage of this. Except maybe YUI, which have very nice stylesheet API.
-

John-David Dalton 2010-06-09 10:23:04 UTC
- Tag changed from stylesheet to enhancement, stylesheet
-

John-David Dalton 2010-06-09 13:44:09 UTC
- Milestone cleared.
- Assigned user cleared.
-

Joe Gornick 2010-09-29 09:47:57 UTC
- Assigned user set to John-David Dalton
- Milestone order changed from 0 to 0
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
JavaScript frameworks share similar features and functionality such as DOM manipulation, event registration, and CSS selector engines. FuseJS attempts to incorporate the strengths of these frameworks into one stable, efficient, and optimized core JavaScript framework.