Skip to content

Suggestion: support XPath via document.evaluate #46

@elazarcoh

Description

@elazarcoh

This is the first time I needed something like this, so I don't know how useful it is in general.

I needed to "hack" my way to modify the style of an element, in a 3rdparty framework. I couldn't use any available method in surreal to get the correct element (again, because it's a 3rdparty framework, and I had no control over any of the attributes/classes).
So instead, I used an XPath expression with document.evaluate to find the correct element and then applied me on it to get all the other benefits of surreal.

So, the suggestion is to support XPath expressions in the me and any methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions