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

Different results for same node with getSingleSelector and getMultipleSelector #26

Open
xMartin opened this issue Jan 23, 2017 · 1 comment

Comments

@xMartin
Copy link

xMartin commented Jan 23, 2017

<div id="div1">
  <span id="span1"></span>
</div>
OptimalSelect.getSingleSelector(span1)  // "#span1
OptimalSelect.getMultiSelector([span1])  // "#div1 span[id]"

Is this expected?

@entrptaher
Copy link

#span1 sounds very specific, while #div1 span[id] does not sound so unique to me.
I think it's expected. Single Selector should find unique selector, Multi Selector should find common selector.

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

2 participants