Is it possible to use jQuery to manipulate XUL elements?

前端 未结 6 861
一向
一向 2020-12-08 05:30

I know its possible to integrate jQuery within Firefox addons, but are we able to manipulate (animate, move, adjust transparency, etc) XUL elements themselves?

From

6条回答
  •  天命终不由人
    2020-12-08 06:07

    Unfortunately, jQuery fails to initialize in XUL because of the HTML-specific functions like document.body that exist for HTML pages only. However there is a special branch called jQuery-xul that it optimized for use in FireFox extensions. I have checked, it works fine.

提交回复
热议问题