Alexandre Morgaut (2013-07-28T14:03:31.000Z)
domenic at domenicdenicola.com (2014-05-14T17:01:14.432Z)
Using a method would be jQuery like: - http://api.jquery.com/first/ - http://api.jquery.com/last/ but jQuery didn't had much choice has JS getter / setter are not supported by older browsers The DOM API expose first / last child via properties since DOM level 1 - http://www.w3.org/TR/dom/#dom-node-firstchild - http://www.w3.org/TR/dom/#dom-node-lastchild As does Element Traversal - http://www.w3.org/TR/2007/WD-ElementTraversal-20070727/#elementTraversal-firstElementChild - http://www.w3.org/TR/2007/WD-ElementTraversal-20070727/#elementTraversal-lastElementChild Properties would be more logic to me but I'm not sure if they are really necessary It provides a little more semantic friendly access and is a little more friendly for autocompletion