ampproject / ampproject/amphtml
Started getting the validation error "The attribute 'amp-nested-submenu' may not appear in tag 'div'"
- Dominant language
- JavaScript
- Stars
- 14.9k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
## What's the issue?
We have started getting the validation error `The attribute 'amp-nested-submenu' may not appear in tag 'div'` on all our production sites. We followed the [docs](https://amp.dev/documentation/components/amp-nested-menu/) which says `Only
## How do we reproduce the issue?
Please check any of these story URLs for AMP validation errors
- https://www.vikatan.com/amp/story/news/politics/how-is-d-pandian-now-after-getting-hospitalized-his-grand-daughter-explains
- https://www.prabhatkhabar.com/amp/story/national/social-media-new-guidelines-sharing-a-wrong-information-on-social-media-can-reach-you-in-jail-for-5-years-what-is-going-to-be-a-strict-law-know-here-vwt
- https://www.evoindia.com/amp/story/news/evo-india-february-2021
1) Go to https://validator.ampproject.org/
2) Take the source code of any of the above pages, paste it in the validator input field
3) The error `The attribute 'amp-nested-submenu' may not appear in tag 'div'.` comes up
## What browsers are affected?
All browsers
## Which AMP version is affected?
2102130314001
This is a new issue, we noticed it first on 24th Feb 2021
Contributor guide
Research direction
Compare the documented amp-nested-submenu usage with validator output for the listed AMP story URLs and AMP version 2102130314001. Start by reproducing the error in validator.ampproject.org; done means the affected markup validates without the attribute error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100