Ionic1 WKWebView not able to access elements in a directive (loading an iframe)

Hi,

I started using WKWebView in my ionic1 APP since a few days ago, but now I can’t access the HTML elements using jquery.

I used elem.on(‘load’, function() { … to access the elements with in an iframe in a directive like:
var iFrameHeight = elem[0].contentWindow.document.body.scrollHeight + ‘px’;
and
elem.contents().find(‘p’).each(function() { …

Although the iframe is loaded correctly I can’t access the elements within the iframe as I used to before. If I revert back to UIWEbView everything works as before and I can access the elements using elem.contents().find(‘p’) …

I suspect that jQuery is not being loaded but I don’t know why!

Can anyone tell me if I missing anything here?

Thanks