IE and Edge getElementsByTagName and querySelector/All treats <img> and svg<image> as the same tag

Duplicate Issue #7163092 • See Issue #7163109


Apr 10, 2016
This issue is public.
See progress on Bug #7163109
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


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Travis L.”

    • 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:

      All the best,
      The MS Edge Team

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

    Sign in