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
       Web browser: Apple Safari
   Mobile Platform: ---

The images for the thumbs do not work for me in Safari. The reason is the

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('', '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

Reply via email to