<ul>
elements should only contain only <li>
, <script>
or <template>
elements.
The engine scans for <ul>
elements with direct child elements that are not <li>
, <script>
or <template>
elements.
Not using HTML according to the specification leads to confusion for user agents and assistive technologies that rely on correct semantic information to present a coherent representation of the page.