Hello,

I've experienced difficulties using correctly the Element API. DOM
manipulation is a cornerstone of any JS framework, so it's important
that the API is perfect.


This is what I found confusing in the few Element functions I've had
to use so far:

- "grab()" cannot only take an Element with no child elements.
"adopt()" should instead be used to do such a thing. This is
confusing. To me an element containing child elements is an Element,
and not an Elements. Ideally, "grab()" and "adopt()" would be merged
into a single function that would handle all cases.

- "getChildren()" and "getElements()". I still don't understand the
difference. So similarly as above, I'd merge both functions to make
things simpler.

Reply via email to