https://bugzilla.wikimedia.org/show_bug.cgi?id=62985
Bug ID: 62985
Summary: image thumbs broken in Safari
Product: MediaWiki extensions
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: Popups
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Web browser: Apple Safari
Mobile Platform: ---
The images for the thumbs do not work for me in Safari. The reason is the
following:
TypeError: 'undefined' is not an object (evaluating '$box.removeClass(
'mwe-popups-no-image-tri' ).find( 'image' )[0].setAttribute')
The reason is that no <image> was added but a <img> instead. This is because
some browsers (IE and safari) basically have a symbolic link from image to img
in the HTML context.
And that leads us to the 2nd problem, these elements are created using jQuery,
but jQuery doesn't support element namespaces explicitly and because the image
element will be created in the 'current' document context, it will thus create
an HTML img element. What you need instead is something like:
document.createElementNS('http://www.w3.org/2000/svg', 'image');
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l