Adding CSS to a document from bootstrap

Hello.

The stylesheet service documentation states

Firefox 18 extended nsIDOMWindowUtils with loadAdditionalStyleSheet() and removeAdditionalStyleSheet() to manage stylesheets for a specific document (bug 737003).

But I couldn’t find any documentation regarding loadAdditionalStyleSheet() nor I couldn’t find anywhere in FF nightly installation that even mention that.

Is the documentation incorrect?

Thank you.

1 Like

That comment is incorrect. loadAdditionalStyleSheet() is an internal function not exposed to javascript. The functiona you want is simply called loadSheet():

2 Likes