use .endChild[L] not .firstChild

silent semantic merge conflict