@ Nonnull @ ReturnsMutableCopy public static ICommonsList < IMicroElement > getChildElements ( @ Nonnull final IMicroElement aElement , @ Nonnull final EHTMLElement eHTMLElement ) { ValueEnforcer . notNull ( aElement , "element" ) ; ValueEnforcer . notNull ( eHTMLElement , "HTMLElement" ) ; final ICommonsList < IMicroElement > ret = new CommonsArrayList <> ( ) ; ret . addAll ( aElement . getAllChildElements ( eHTMLElement . getElementName ( ) ) ) ; ret . addAll ( aElement . getAllChildElements ( eHTMLElement . getElementNameUpperCase ( ) ) ) ; return ret ; }
Get a list of all HTML child elements of the given element . This methods handles lower - and upper - cased elements .