stylesheet helpers API
Reported by Diego Perini | June 8th, 2010 @ 05:22 PM
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 June 9th, 2010 @ 03:22 AM
+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 June 9th, 2010 @ 10:23 AM
- Tag changed from stylesheet to enhancement, stylesheet
-
John-David Dalton June 9th, 2010 @ 01:44 PM
- Milestone cleared.
- Assigned user cleared.
-
Joe Gornick September 29th, 2010 @ 09:47 AM
- 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.