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

fieldset named selector returns the most outer fieldset instead of the closest ancestor #714

Open
cyberwolf opened this issue Aug 26, 2016 · 3 comments

Comments

@cyberwolf
Copy link

cyberwolf commented Aug 26, 2016

In an attempt to use the fieldset named selector, it did not return the fieldset I expected it to return when using find() with the legend value as a locator and fieldsets are nested. Instead of the closest ancestor fieldset a legend belongs to, it returns the farthest ancestor fieldset.
An example:

  • fieldset 1
    • fieldset 1.1
      • legend "a"
    • fieldset 1.2
      • legend "b"

When using the fieldset named selector with the value of either legend "a" or legend "b", in both cases fieldset 1 is returned, while I expected it to return respectively fieldset 1.1 and fieldset 1.2

@aik099
Copy link
Member

aik099 commented Aug 26, 2016

It would be better demonstrated with a failing test case sent as PR or at least HTML and PHP code posted in here to demonstrate the problem.

@cyberwolf
Copy link
Author

@aik099 sure, I'll provide a test.

@claudiu-cristea
Copy link

Should be closed in favour of #726.

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

3 participants