We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0af9c93 commit c723787Copy full SHA for c723787
src/index.js
@@ -774,15 +774,15 @@
774
if (!prefix) {
775
for (let attr of element.attributes) {
776
// If an attribute with "-query" suffix is found, extract prefix.
777
- if (attr.name.endsWith("-query")) {
+ if (attr.name.endsWith("-query") || attr.name.endsWith(".query")) {
778
prefix = attr.name.slice(0, -6);
779
}
780
781
// If no valid prefix is found, exit the function.
782
if (!prefix) return [];
783
784
// Get the selector using the derived prefix.
785
- selector = element.getAttribute(prefix + "-" + "query");
+ selector = element.getAttribute(prefix + "-" + "query") || element.getAttribute(prefix + "." + "query");
786
if (!selector) return []; // Exit if no selector is found.
787
788
0 commit comments