Menu

#1783 DOMTokenList doesn't support accessing items by index

Latest SVN
closed
javascript (30)
1
2016-04-28
2016-04-27
No

According to https://dom.spec.whatwg.org/#interface-domtokenlist tokenList[index] should work exactly like tokenList.item(index) but the first one always returns undefined. I've encountered some errors becasue of that.
Attached patch contains test and fix (probably wrong one but it works).

1 Attachments

Discussion

  • Ahmed Ashour

    Ahmed Ashour - 2016-04-28
    • status: open --> closed
    • assigned_to: Ahmed Ashour
     
  • Ahmed Ashour

    Ahmed Ashour - 2016-04-28

    Thanks for reporting (and the patch), committed in SVN.

    Please provide your name if you want it to be referenced.

     
  • Marek Gawlicki

    Marek Gawlicki - 2016-04-28

    I've set my name. Thanks.

     
  • Ahmed Ashour

    Ahmed Ashour - 2016-04-28
     

Log in to post a comment.