Rather than having a special case for `LI` in this function, I would prefer to use constants. So you'd need to create another constant called something like `INLINE_TABLE_INSERTION_ELEMENTS` that's a list that only contains `LI` (for now). As a result, you'll probably want to update some variable names in the function.