public bool IsBlockElement() { if (_isBlockElement == TriState.Undefined) { _isBlockElement = this.NodeType == XmlNodeType.Element && !InlineElements.Contains(GetNamespaceName()) ? TriState.True : TriState.False;; } return(_isBlockElement == TriState.True); }
// In reality this algoritm is significantly more complex private static bool ShouldTrimTextContent(IElement element) => !InlineElements.Contains(element.TagName);