Couple things here just for your info.

If children contained anything that wasn't a LIElement, like a DivElement, then checked mode will fail here.
Its more Darty to not declare the type definitions for anonymous functions.