Unable to add children to SVG using Javascript

Issue #10267576 • Assigned to Steven K.


Pav S.
Dec 19, 2016
This issue is public.
Found in
  • Microsoft Edge
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

With an SVG:

    <tspan class="myText"></tspan>

If I was to update the content inside .myText using Javascript like so:

document.getElementsByClassName('myText')[0].innerHTML = 'Some Text';

The content will not be updated. This works in every other browser I have tested, including Chrome, Safari and Firefox.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Ibrahim O.”

    • Thank you for your feedback. We are having difficulties reproducing the issue on MS Edge Windows version 14393.576 (winver.exe). Could you please provide your HTML or SVG sample that can demonstrate the issue? 

      Best regards,
      The MS Edge Team

    • Microsoft Edge Team

      Changed Assigned To from “Ibrahim O.” to “Steven K.”

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

    Sign in