Some Code style fixes.
Added a helper `.isInlineNode` method.