- From: Domenic Denicola <notifications@github.com>
- Date: Sun, 03 May 2015 06:06:11 -0700
- To: whatwg/dom <dom@noreply.github.com>
Received on Sunday, 3 May 2015 13:06:39 UTC
I implemented the current attribute spec in jsdom pretty exactly. However, it failed the following web-platform-test ([source](https://github.com/w3c/web-platform-tests/blob/56537bab9207d0c910c49305d4b55d5d5c639dea/dom/nodes/attributes.html#L41)): ```js test(function() { var el = document.createElement("div") el.setAttribute("ALIGN", "left") assert_equals(el.getAttributeNS("", "ALIGN"), null) assert_equals(el.getAttributeNS("", "align"), "left") assert_equals(el.getAttribute("align"), "left") }, "setAttribute should lowercase its name argument (upper case attribute)") ``` In my implementation `null` is returned for all three calls, because per spec `setAttribute` doesn't actually do any lowercasing. If this is intentional we can just update web-platform-tests. I was unclear. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/31
Received on Sunday, 3 May 2015 13:06:39 UTC