I have the following element:
<page-title xml:lang="x-default">Text</page-title>
I need to be able to select it by its attribute as a have a list of tags, that I need to select individually.
The issue is I cannot select the element with:
page-title[xml:lang="x-default"]
As the ":" colon seems to break the attribute as its probably not a valid character to use. I know that you can use wildcard selectors for the value of the attribute such as * for containing and ^ for begins with, and so on.
My question is, is it possible to build a selector which uses wildcard not for the attribute value but for the attribute name itself? such as:
page-title[*lang="x-default"]
For a selector which would get a element with an attribute name containing "lang" which has a value of "x-default"?
Can this perhaps somehow be done with JavaScript? I also have jQuery available if that would be an option.