feat(chrome): translate idPrefix to a starts-with id match

This commit is contained in:
pj committed 2026-08-13 00:00:57 +05:30
1 parent 1fcb7a9f7d
commit 59975231ce
2 files changed
+5

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ func TranslateStringSelector(selector string) (string, bool, error) {
switch kind {
case "id", "resource-id":
return `[id="` + cssEscape(value) + `"]`, false, nil
case "idPrefix":
return `[id^="` + cssEscape(value) + `"]`, false, nil
case "class":
return `[class~="` + cssEscape(value) + `"]`, false, nil
case "tag":