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

Wrong Selector #5

Open
Spuds opened this issue Mar 27, 2022 · 0 comments
Open

Wrong Selector #5

Spuds opened this issue Mar 27, 2022 · 0 comments

Comments

@Spuds
Copy link

Spuds commented Mar 27, 2022

var postAncestor = selectionAncestor.selectSingleNode('ancestor-or-self::div[contains(@class,"inner")]');

At least in 2.0 this is a section with a class of messageContext, so you may want to check that in 1.1 as well

In the 2.0 that I'm working on this is now
postAncestor = document.evaluate('ancestor-or-self::section[contains(@class,"messageContent")]', selectionAncestor, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; since I also removed the wrapper function

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

1 participant