I'm developing a Firefox add-on and having a problem: onClick event does not work with xbl:inherits. Other attributes like value and src work well
Here is my code
Binding:
<binding id="CF-review">
<content>
<xul:vbox>
<xul:label class="CF-review-url" xbl:inherits="onclick">[more]</xul:label>
</xul:vbox>
</content>
</binding>
Script:
function onReviewClick()
{
alert("Something");
}
var elem = document.createElement("vbox");
elem.className = "CF-review";
elem.setAttribute("onclick", onReviewClick);
How can I set event onclick for xul:label element above?