Hey everybody .I encountered a problem with the accordion widget when validating with w3 standards. the error indicates that an element a cannot have a button child or with the attribute role=”button”. Can someone please help me solve this problem?
The page I need help with: [log in to see the link]
After conducting research, I have gathered the following information:
It has been determined that this issue is not caused by Elementor.
Here’s what we have found: This is a false positive and does not have any negative effect on functionality, performance, or SEO scores. You can safely ignore it. This widget uses tags to trigger the toggle of each accordion, and due to backward compatibility, we have no plans to change this behavior.
Here’s what you can do to address your concern: If you require a semantically correct accordion, please enable the Nested Elements feature in your WordPress Dashboard > Elementor > Settings > Features page, and use the new (nested) Accordion widget. This widget will not trigger any warnings from the W3 validator.