| It does indeed use JavaScript. Sorry about not being more clear about it in the spec, but that's a part we're still working on. It will feature a completely new DOM, integrating the properties of the HSS side and the JS ones all into one. Functions and code will be executed by setting something like this: myElement { behavior: @click {
action: @javascript {"
//your code goes here
"}
};
}But that's not the usual way one would use this, instead one would do: //define the click handler @click myClickHandler { action: @javascript {"
//your code goes here
"}
}//assign the handler to your object myElement { behavior: myClickHandler; } This way, you can see how it will be reusable, and your javascript can be assigned inside of any preset that you may create and apply, instead of selecting the element again from inside javascript in another file. |