Validate 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>
Examples of correct code for this rule:
<ul>
<li>foo</li>
</ul>