Closed eorroe closed 9 years ago
Is this a standardized API? Can you point me to some official docs for this?
No it's not, it's an idea.
Ah. Well, even if the idea is useful (it is, in this particular case), we try to modify native prototypes only by adding standardized APIs (polyfills) to avoid potential namespace clashes and forward compatibility issues.
Oh I saw this reference from mdn, which is under development I believe so I thought why not suggest the idea here, instead of in specifiction.org.
The
childIndex
property would return the index of that child Element from parent