- From: Veli Senol <senol.veli@gmail.com>
- Date: Mon, 4 Apr 2016 12:14:07 +0200
- To: www-dom@w3.org
Received on Thursday, 7 April 2016 20:52:01 UTC
hello, this from the spec: Note: Elements is the better solution for representing a collection <https://www.w3.org/TR/dom/#concept-collection> of elements <https://www.w3.org/TR/dom/#concept-element>. HTMLCollection <https://www.w3.org/TR/dom/#htmlcollection> is an historical artifact we cannot rid the web of. what does that mean in fact? Does it mean: document.getElementsByTagName('p')[0] is the better way than using var paras = document.getElementsByTagName('p'); paras[0]; best regards 2016-03-29 16:17 GMT+02:00 Veli Senol <senol.veli@gmail.com>: > hello, > > please could you give me a pointer in which spec to search for > .getElementsByName(). > > > regards > > Veli Senol >
Received on Thursday, 7 April 2016 20:52:01 UTC