getElementsByClassName() for SVG bug

Issue #11729645 • Assigned to Travis L.

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.

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

    Sign in