Skip to content
This repository was archived by the owner on Dec 29, 2020. It is now read-only.

Conversation

@ptarjan
Copy link

@ptarjan ptarjan commented Oct 31, 2011

No description provided.

@gre
Copy link
Owner

gre commented Oct 31, 2011

What's the need of this?

The problem here is you can't assume the name attribute is unique inside a page.
As I know, only the id attribute has to be unique in the DOM.

Maybe you could adapt the loop check (done for the id generation) to add a incremental number at the end of the name.

@ptarjan
Copy link
Author

ptarjan commented Nov 2, 2011

Why do you care about uniqueness? I thought you wanted an identifier that will work as a fragment? Name works great for that.

http://ogp.me/#type_music.song

@gre
Copy link
Owner

gre commented Nov 2, 2011

My point was:
What's happen if we have multiple same name in the page? Does the anchor only work for one of them?
Could we assume the page doesn't have multiple same name?
And also, does it work on IE?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants