In my current version of Edge, I am facing an issue where the empty attribute selector is not functioning correctly. You can find more information about this problem here.
The selector I am using is:
[ct-validation]:not([ct-validation=""]) {
border-color: red;
}
The ct-validation
attribute contains an error message. Whenever the error message is present, a red border is applied to the element. This works perfectly in all browsers except for Edge (40.15063.0.0). Unfortunately, upgrading is not an option for me due to restrictions set by Corporate IT.
Is there an alternative method to check if an attribute is empty using CSS only?