[dom] HTMLCollection.item() and passing string (#99)

Firefox, Chrome, IE, Opera (Presto) support this variant, I can't determine why, it's covered per actual DOM?

```
<!DOCTYPE html>
<html>
<body>
 <div id="id1" name="name1">DIV1</div>
 <div id="name1" name="id1">DIV2</div>
 <p id="info"></p>
 <script>
  var collection = document.getElementsByTagName("div");
  var info = document.getElementById("info");
  info.innerHTML += "Result:<br><br>" + collection.item("name1").textContent + "<br>";
  info.innerHTML += collection.item("id1").textContent + "<br>";
 </script>
</body>
</html>
```
and output:
Firefx, Chrome, Opera (Presto): DIV1 DIV1
IE11: DIV2 DIV1


---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/99

Received on Thursday, 22 October 2015 15:32:20 UTC