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.

`data-` prefix `anchor` attribute in docs

See original GitHub issue

The OpenUI is working on standardizing popups for the web, and they’re proposing an anchor attribute.

It’d be best to data- prefix the “custom” attribute:

https://github.com/Leaflet/Leaflet/blob/c94faa201a916fbf48e30156179d78ab5620d2d5/docs/SlavaUkraini/docs/js/reference.js#L10

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
KnightJam1commented, Apr 21, 2022

Yup, only the js file will be changed, is that correct?

1reaction
Malvozcommented, Apr 20, 2022

@KnightJam1 The attribute is only used in the documentation at reference.html, so you’ll only need to follow the Improving documentation steps. After making the change you can simply inspect the DOM of the document locally, using the “Elements” tab in your browser’s devtools, to see if the change is reflected in that document.

Read more comments on GitHub >

github_iconTop Results From Across the Web

data-* - HTML: HyperText Markup Language - MDN Web Docs
The data-* global attributes form a class of attributes called custom data attributes, that allow proprietary information to be exchanged ...
Read more >
Anchor Tag Helper in ASP.NET Core | Microsoft Learn
The asp-route-{value} attribute enables a wildcard route prefix. Any value occupying the {value} placeholder is interpreted as a potential route ...
Read more >
The Anchor element in HTML
An anchor is a piece of text which marks the beginning and/or the end of a hypertext link. The text between the opening...
Read more >
KML Reference | Keyhole Markup Language
This element allows you to add untyped custom data. Be sure to reference the namespace prefix in the <kml> element of your file...
Read more >
HTML Global data-* Attributes - W3Schools
The attribute name should not contain any uppercase letters, and must be at least one character long after the prefix "data-"; The attribute...
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