, "pekka.vorne" <pekka.vorne@...> wrote:
> > And the link node in the iframe document is from the same origin? I was recommending you seed from a style node, not a link node, so as to avoid this problem. If needs be, create a style node and attach it to the head of the iframe document via js first.
> > var s = documentIframe.createElement('style');
> > s.type = 'text/css';
> > documentIframe.getElementsByTagName('head').appendChild(s);
> > var iframeStyleSheet = YAHOO.util.StyleSheet(s);
> > Hope this helps,
> > Luke
> It didn't help either, or I just did something badly wrong.
> The YUI StyleSheet Utility is still a beta version, I hope the issue with iframes will be fixed.. or someone has time to make an example with an iframe for dummies like me. :)
> Pekka Vorne
Arg, you got me. It was checking the style element's parent to make sure it was the head *of the current document*. I've filed a bug here
and checked in the fix. Sadly, it's nothing you can patch onto the 2.7 code because it's in the constructor, but you can download the updated file directly from github
Thanks for finding this!