News for hackers. Stuff that matters.
Re:Flight: A lightweight, component-based JavaScript framewo... by TheZenPsycho on Friday February 15, 2013 @03:52PM (#5228581)
with performAcceptanceRoutine(), that cooresponds to an actual global javascript function that must exist, and specifies how (imperative) not what (declarative).

With a class "acceptButton" you are specifying what it is, semantically and declaratively, without reference to some specific procedure that will be carried out, if anything will be done at all. This frees up to a great degree the range of code that you can write to "activate" This html, and also, makes it so that the HTML is not bound to some specific code base, and it can be parsed in situations that explicitly ban javascript.

There are no comments on this comment yet.