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
Xpath support #181
Comments
Are you suggesting the same operations as query selectors? For example:
This will require either some big custom coding or, more likely, use of a JavaScript port of XPath support. Should definitely be doable and I can imagine it not being too difficult. Regarding funding; since the donate button on the options page hasn't had a single click I'm not sure Templates users are the funding type. This is not a complaint. I offer Template freely and actually enjoy working on it. I added the donation button out of interest and hope :) |
Offtopic: I'm probably being silly, but how do I split a string into several components in a template? f.e. "My string" -> ["My", "String"] P.S. Great extension. |
No, document.querySelector can only accept CSS selectors and XPath support isn't built in to the DOM as far as I'm aware. Thanks for the suggestion, I'll have a look into that and other possibilities, should I find any.
But then I can be waiting ages for funding when I'd have already coded the feature and would be dying to release it to my users. I'm too eager P.S. Thanks! |
Sorry, I missed a bit;
This isn't really something I've thought about. Could you please raise another issue for this feature while also specifying why this would be useful and preferably one or more examples. |
It looks like this may be easier than I thought: https://developer.mozilla.org/en/docs/Introduction_to_using_XPath_in_JavaScript I just have to check browser compatibility and familiarize myself with the implementation. |
@cvalka2 Have you had a chance to try these new operations out yet? If so, are you happy with them? |
Xpath for the select operator and others.
Why not crowdfund this feature on https://www.catincan.com ? I'd personally make a pledge.
Public disclosure: I'm affiliated with Catincan.
The text was updated successfully, but these errors were encountered: