CSS stylesheet support can be used for Event Delegation directly from the
stylesheet to specially prepared methods. Simple mockup:
#browser.ie4 div.contents .section:load {
stripTables: "odd-tr";
modifySection: 10 arg1 "argument 2";
}
In this example selector is root for delegation with event stated at the
end. Properties are methods (what would class looks like ? :: ?) and
parameters are method's parameters, separated by space.
Additionally above example contains some browsercheck, which illustrates
another usecase for such functionality.
Probably best tool for this will be CSSTidy[1] with native PHP
implementation. Other possibility is PEAR class. Own implementation is also
considered.
[1] http://csstidy.sourceforge.net/
Original issue reported on code.google.com by tobiasz....@gmail.com on 26 Jan 2009 at 12:04
Original issue reported on code.google.com by
tobiasz....@gmail.com
on 26 Jan 2009 at 12:04