Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use name= instead of id= #33

Open
jooize opened this issue Jan 5, 2016 · 0 comments
Open

Use name= instead of id= #33

jooize opened this issue Jan 5, 2016 · 0 comments

Comments

@jooize
Copy link
Member

jooize commented Jan 5, 2016

Stumbled upon this while creating a document. Make of it what you will.

<h3 id="nubits-official-wallet-nu">NuBits Official Wallet (Nu)</h3>

https://docs.nubits.com/

Use a name. Using an ID isn't necessary in HTML 5 and will create global variables in your JavaScript

Many libraries (i.e., not your own JS, but someone else's) use a single global - for example, fineuploader. If you make an element with an ID of fineuploader, you will be unable to use the fineuploader module. Avoiding creating unnecessary globals helps avoid those conflicts.

https://stackoverflow.com/questions/5319754/cross-reference-named-anchor-in-markdown/17028463#17028463

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant