Element.acceptsContent

struct Element
const pure @safe
bool
acceptsContent
()

Return Value

Type: bool

True if the element allows content.

To accept content, the element must have an end tag. In HTML, void elements such as elemH!"input" do not have one, and thus, cannot have content. In XML, a self closing tag (marked with /) elemX!"tag/" also cannot have content.

Meta