> I would like to add two more functions which should IMO be merged for
> simplification:
> "getElement()" and "getFirst()".

Before "simplifying," first step back and see the difference.

getFirst(): equivalent of the CSS > combinator (direct child)

getElement(): CSS whitespace combinator (any descendant)

There's  a  reason  they  are  separate  in CSS, and a reason they are
separate in Moo DOM API.

If   you  have  a  documentation  suggestion,  I'm  sure  it  will  be
appreciated:

   https://github.com/mootools/mootools-core/issues

The  docs  need expansion and corrections, no one disputes that (whose
docs  *don't*  need  improvement?).  That's  not  the same question as
whether  methods  can simply be "merged" without either breaking BC or
making method calls more complicated.

-- S.

Reply via email to