Lists do not contain only <li> elements and script supporting elements (<script> and <template>)

Google Lighthouse generates a warning when it sees components that should not be in list elements. As follows:

Lists do not contain only <li> elements and script supporting elements

How to pass the audit? – Creating Correctly Structured Lists

It is extremely important that you can restructure the lists within the framework of the warning you received from Google Lighthouse. For this, you need to remove all the components that are in the list elements but should not be there. Check both ordered and unordered lists. If there are elements other than <li>, <script> or <template> components among the elements found here, remove all of them.

When a valid list structure is examined, you can see that the <ul> and <ol> elements are also included as the parent elements of the <li> element. These also do not spoil the valid view. However, all components other than this will spoil the valid structure and need to be fixed. 

Test Your Website Performance!

You can quickly analyze your site in a minute