A Tags Without Href Generate A Navigation Event #34 - GitHub
Có thể bạn quan tâm
Skip to content You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} elm / browser Public 
sportoopened on Sep 13, 2018
- Notifications You must be signed in to change notification settings
- Fork 67
- Star 325
- Code
- Issues 56
- Pull requests 20
- Actions
- Projects 0
- Security
Uh oh!
There was an error while loading. Please reload this page.
- Insights
Description
When using Browser.application. If you have an a which doesn't have an href, Elm will generate a navigation event.
Reproduction here: https://github.com/sporto/repro-elm-application-a-tag/blob/master/src/Main.elm
This seems like a bug, a tag is not supposed to be a link unless it has a href.
https://www.w3.org/TR/html5/text-level-semantics.html#the-a-element
If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents. If the a element has no href attribute, then the element represents a placeholder for where a link might otherwise have been placed, if it had been relevant, consisting of just the element’s contents. 👍React with 👍17Metadata
Metadata
Assignees
No one assignedLabels
No labelsNo labelsType
No typeProjects
No projectsMilestone
No milestoneRelationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Từ khóa » Html5 A Tag Without Href
-
Valid To Use (anchor Tag) Without Href Attribute? - Stack Overflow
-
Is It Bad To Use Without Href? | Sololearn: Learn To Code For FREE!
-
Can I Use Anchor Without Href? | Placeholder Hyperlink - Code
-
A Link Without Href Code Example
-
: The Anchor Element - HTML: HyperText Markup Language | MDN
-
Anchors Without Href - Accessibility - SitePoint Forums
-
Valid To Use (anchor Tag) Without Href Attribute? - Newbedev
-
How To Style An Anchor Tag With No Href Attribute? - Misc
-
Is An Anchor Tag Without The Href Attribute Safe? - CopyProgramming
-
Anchor Tag Without HREF Attribute - CodePen
-
HTML A Tag - W3Schools
-
Back To Basics: Non-Navigating Links For JavaScript Handling
-
HTML5 Navigation: How To Use Anchor Tags For Hypertext
-
Link Behavior - IT Accessibility - NC State University