I understand that using the same id multiple times in a page creates malformed html. When using a jquery selector only the first element with the id will be returned, but in my application I shouldn't be running into this issue.
I have list of items views that will all have an element I need to refer to. Since each item only has access to its own $el
passing in an id selector for something will not produce any conflicts (even if there are multiple on the page).
I've simulated what I mean in a fiddle here
In this project I am not doing any page wide parses so I believe it should be safe. Is there any reason why I should not be doing this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…