Skip to content

gets the wrong selector when :nth-child is needed higher in the tree #2

@dbuezas

Description

@dbuezas

how to reproduce:
go to http://www.amazon.de/dp/B00KX14CY6?psc=1
insert css-path sourcecode
write in the console

el = document.querySelector("li:nth-child(3) #a-autoid-2 > span.a-button-inner > input.a-button-input") //second image

el2 = document.querySelector(cssPath(el, document))

el === el2 // false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions