question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

anchor tags have no link content or id, buttons would be better

See original GitHub issue

For accessibility reasons, anchor tags should have valid link content/text or at the very least, an id attribute.

I think an id would maybe be the easiest to add, maybe with the prefix from the instance of the editor itself so you can ensure a unique value if multiple editors are on a page.

Ideally, you would replace them all with button elements, which would probably be more semantically correct. See the recommendation regarding accessibility in the MDN docs

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jrsinclaircommented, Nov 7, 2017

Hi @RIP21. PR for this project is at #43

0reactions
RIP21commented, Nov 8, 2017

Merged! #43

Read more comments on GitHub >

github_iconTop Results From Across the Web

Stop using anchors as buttons! | Ancestry Corporate
Simply use an id attribute on the containing element of the region you want "linkable." Don't use an empty <a name="my-section"></a> element. Are...
Read more >
Anchors vs Buttons - bitsofcode
Because no link is related to the element, only the default user-action pseudo-classes ( :hover , :active and :focus ) are available to...
Read more >
Should you use a button tag or an anchor tag for clickable ...
The main reason is that it provides better accessibility without extra ... Anchors are also ideal for linking to other content in the...
Read more >
Valid to use <a> (anchor tag) without href attribute? [duplicate]
Yes, it is valid to use the anchor tag without a href attribute. If the ...
Read more >
<a>: The Anchor element - HTML: HyperText Markup Language
Content within each <a> should indicate the link's destination. If the href attribute is present, pressing the enter key while focused on the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found