IE/Edge js selectors treats both html <img> and svg <image> tags as the same tag

Duplicate Issue #7163089 • See Issue #7163109

Details

Created
Apr 10, 2016
Privacy
This issue is public.
Duplicates
See progress on Bug #7163109
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

  1. Add an html <img> tag and an svg with an <image> tag in it to a document
  2. run document.getElementsByTagName(‘img’) or docuemnt.querySelectorAll(‘img’)
  3. the result will return an array with both images.
    this also applies to document.querySelector.
    Attached a unit test that passes on Chrome, Firefox and Sfari but fails on Edge and IE (link to codepen version of the test case http://codepen.io/tombigel/pen/YqYBmz)

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Travis L.”

    • this is a duplicate of #7163109
      sorry, submitting the form failed for me twice and created redundant bugs

    • duplicate of Issue #7163109. sorry.

    • Microsoft Edge Team

      Changed Status to “Duplicate”

    • Hello,

      This item appears to be a duplicate of an existing item of feedback and will be closed out to reflect this. Please follow the existing item here for updates on this issue:

      https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7163109
      /

      All the best,
      The MS Edge Team

    You need to sign in to your Microsoft account to add a comment.

    Sign in