getElementsByClassName() for SVG bug

Fixed Issue #11729645

Details

Author
Freddy A.
Created
Apr 20, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Collecting SVG elements with getElementsByClassName() throws sometimes an error:
"document.getElementsByClassName(‘className’)" works, but
"document.getElementById(‘someParent’).getElementsByClassName(‘className’)" not
See example at https://jumpingcat.eu/tryout/svgclass.html

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Travis L.”

    • What is the status on this issue? Did anyone confirm this error?
      No other browser (Chrome, Firefox, Opera) has this issue. It did only pop up with Edge. I don’t have IE, so i don’t know if it gives any problems there.

    • Hello, is there anyone who read these reports? Or are we talking to walls?

      This is not the first report on this issue see:
      https://connect.microsoft.com/IE/feedback/details/1632051/svg-path-tag-getelementsbyclassname-error-in-edge-browser
      The problem wasn’t solved here.

      Also here http://caniuse.com/#feat=getelementsbyclassname under “known issues” is stated that “getElementsByClassName” under IE11 is not working for SVG-elements.

    • Microsoft Edge Team

      Changed Status to “Fixed”

    • Hello,

      Thank you for providing this information about the issue. We are pleased to report this feature is fixed in Edge 16275 and is available in our latest Insider Preview build in the Fast ring.

      Best Wishes,
      The MS Edge Team

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

    Sign in