Closed tomas-eklund closed 1 year ago
Additionally: I can't seem to find any hooks in the nav menu render method for us to filter the output.
Let me summarize your solution:
migration_allowed
attribute to data-migration_allowed
migrated
attribute to data-migrated
role
attributeSeems like the role
attribute have been removed in previous versions.
Hello @tomas-eklund!
We have great news! 🙌
✔️ Please feel free to check it out and update your plugin to the new version!
Cheers 🥂
Prerequisites
Description
The Elementor nav menu adds attributes that will generate warnings and errors when validating the HTML with validator.w3.org.
This seems to be the offending code in elementor-pro/modules/nav-menu/widgets/nav-menu.php, line 1274-1279:
The errors and warnings from the Nu HTML Checker are:
It seems that the migration-related attributes has something to do with the transition från Font Awesome 4 to Font Awesome 5. But don't see why the attributes are sent to the user. Shouldn't these be internal-only?
If you really need these attributes in the HTML, for whatever reason, why not put them in HTML5 data attributes instead so that the code validates?
Isolating the problem