Call to setAttribute results in uppercase attribute name

Fixed Issue #6402908

Details

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

Sign in to watch or report this issue.

Steps to reproduce

URL:

Repro Steps:

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<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’);
}
</script>
</head>
<body onload="test()“>
<div id="testDiagram_workArea” style="width:793px; height:1122px;">
<svg id="svg" width="793px" height="1122px" version="1.1" xlink="http://www.w3.org/1999/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>
</g>
</svg>
</div>
</body>
</html>

Expected Results:

Attribute should be lower case.

Actual Results:

Dev Channel specific:

No

Attachments

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: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/5579311/

      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
      CLIP-PATH="none".

      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