verify element content model (element-permitted-content)

HTML defines what content is allowed under each type of element.

Rule details

Examples of incorrect code for this rule:

<!-- <li> is only allowed with <ul> or <ol> as parent -->
<div>
    <li>foo</li>
</div>
3:6 - Element <li> is not permitted as content in <div>

Examples of correct code for this rule:

<ul>
    <li>foo</li>
</ul>