Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1.9k
A <router-link> inside <b-nav-item> renders nested anchor tags#6216
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
When a
According to HTML 5 standards nesting of hyperlinks is not allowed. Since bootstrap-vue targets Vue, there is every possibility that a could be used inside in order to maintain the structure of the DOM. I think if we can pass a prop with If
which is now valid as no nested anchor is there anymore. Otherwise, render in usual way, i.e.
It may not be super important at this stage and won't cause any real harm to an application, but it would surely be W3C and HTML5 standard compliance. Maybe giving it a thought is not a bad idea! |
BetaWas this translation helpful?Give feedback.
All reactions
Replies: 1 comment 1 reply
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
-
It would be helpful if you posted the actual code you're using than the rendered HTML. What's the reason you're placing a
You can read more about which components supports creating router links here: |
BetaWas this translation helpful?Give feedback.
All reactions
👍 1🎉 1
-
Thank you@Hiws 👍 |
BetaWas this translation helpful?Give feedback.