Call to setAttribute results in uppercase attribute name

Fixed Issue #6402908


Feb 2, 2016
This issue is public.
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce


Repro Steps:

<html xmlns="">
<script type="text/javascript">
function test() {
start = document.getElementById(‘start’);
start.setAttribute('text-anchor’, ‘start’);
middle = document.getElementById(‘middle’);
middle.setAttribute('text-anchor’, ‘middle’);
end = document.getElementById(‘end’);
end.setAttribute('text-anchor’, ‘end’);
<body onload="test()“>
<div id="testDiagram_workArea” style="width:793px; height:1122px;">
<svg id="svg" width="793px" height="1122px" version="1.1" xlink="">
<g id="g">
<text id="start" x="50" y="20">Start</text>
<text id="middle" x="50" y="40">Middle</text>
<text id="end" x="50" y="60">End</text>

Expected Results:

Attribute should be lower case.

Actual Results:

Dev Channel specific:



0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Mara P.”

      Changed Assigned To to “Travis L.”

      Changed Status to “Confirmed”

    • This issues is related to:

      A little more detail the attribute will only be upper cased if you specify a valid value
      e.g. node.setAttributeNS(null, “clip-path", “foo”); will result in clip-path="foo” if you
      then change the value node.setAttributeNS(null, "clip-path", “none”); it results in

      Specifically: it will only occur if you specify the xmlns attribute on the SVG element (required by the spec), and when it happens, it only appears to affect attributes that are unique to SVGs. So for example, fill, stroke, clip-path, font-family, and font-size will all get capitalized, but the width and height attributes won’t.

      Still not fixed per Edge v38.14393

    • is there any hotfix for this issue.

    • Microsoft Edge Team

      Changed Assigned To from “Travis L.” to “IE S.”

      Changed Status from “Confirmed” to “Fixed”

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

    Sign in