A Tags Without Href Generate A Navigation Event #34 - GitHub

Skip to content Dismiss alert {{ message }} / browser Public
  • Notifications You must be signed in to change notification settings
  • Fork 67
  • Star 325
  • Code
  • Issues 56
  • Pull requests 20
  • Actions
  • Projects
  • Security

    Uh oh!

    There was an error while loading. Please reload this page.

  • Insights
Additional navigation options a tags without href generate a navigation event #34New issueNew issueOpen#139Opena tags without href generate a navigation event#34#139@sporto

Description

@sportosportoopened on Sep 13, 2018

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 👍17

Metadata

Metadata

Assignees

No one assigned

Labels

No labelsNo labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You can’t perform that action at this time.

Từ khóa » Html5 A Tag Without Href