Check whether an element can appear inside a <p> element.
<p>
Performs a surface-level check on the element tag (and container type for containers). Does not recurse into child elements.
Used by the parser to decide whether to wrap adjacent inline elements in a paragraph or leave them as block-level siblings.
Check whether an element can appear inside a
<p>element.Performs a surface-level check on the element tag (and container type for containers). Does not recurse into child elements.
Used by the parser to decide whether to wrap adjacent inline elements in a paragraph or leave them as block-level siblings.