Hi guys,
Not sure if this is a bug or not or who's responsibility it is, but I'm hoping you can shed some light on it for me. We've run into a warning message with Prince when using jQuery offsets, in jQuery 1.8.3. After doing a bit of digging it seems to boil down to a function in jQuery called getWindow that gets called on the document object. It seems that in Prince both defaultView and parentWindow are undefined on the document and so undefined gets returned to the caller. This causes problems as jQuery tries to access the undefined as an object.
I was wondering if you could shed any light on this, thanks.
Not sure if this is a bug or not or who's responsibility it is, but I'm hoping you can shed some light on it for me. We've run into a warning message with Prince when using jQuery offsets, in jQuery 1.8.3. After doing a bit of digging it seems to boil down to a function in jQuery called getWindow that gets called on the document object. It seems that in Prince both defaultView and parentWindow are undefined on the document and so undefined gets returned to the caller. This causes problems as jQuery tries to access the undefined as an object.
function getWindow( elem ) {
return jQuery.isWindow( elem ) ?
elem :
elem.nodeType === 9 ?
elem.defaultView || elem.parentWindow :
false;
}
I was wondering if you could shed any light on this, thanks.