Find us at BrightonSEO 25/26 April - STAND 18! Fill your swag bag!

Dealing with Front-end issues?

Crawl your website with Sitebulb for 300+ tech SEO checks

Try for Free

This Hint has been deprecated, and we no longer consider it best practice. In order to get the most accurate audit results from Sitebulb, please ensure you update to the latest version.

Low This Hint is of the lowest significance, and should only be addressed if there are not more serious issues which have not been handled. Issue This Hint represents an error or problem that needs to be fixed.

CSS contains unqualified attributes

This means that the URL in question is a CSS file that contains one or more unqualified attribute selectors.

Why is this important?

Unqualified attribute selectors, such as [type=text], match all elements first and then check their attributes. This means they have the same performance characteristics as the universal selector (*). Similar to the universal selector, unqualified attribute selectors cause performance issues when used as the key part (far-right) of a selector.

Browsers evaluate selectors from right-to-left, so this rule begins by first matching every element in the document. After that, each of those elements must be inspected to see if it matches the next criteria, and so on. The more complex the selector containing unqualified attributes, the slower the evaluation becomes.

What does the Hint check?

This Hint will trigger for any internal or external CSS URL which contains an unqualified attribute selector as the key part of a selector.

Examples that trigger this Hint:

The Hint would trigger for any style sheet that contains an unqualified attribute selector as the key part (furthest right):

[type=text] {
color: red;
}

.selected [type=text] {
color: red;
}

How do you resolve this issue?

It is recommended to avoid using unqualified attribute selectors as the key part of a selector - using an unqualified attribute selector when it is not key does not introduce such performance issues.

Further Reading

Sitebulb Desktop

Find, fix and communicate technical issues with easy visuals, in-depth insights, & prioritized recommendations across 300+ SEO issues.

  • Ideal for SEO professionals, consultants & marketing agencies.

Sitebulb Cloud

Get all the capability of Sitebulb Desktop, accessible via your web browser. Crawl at scale without project, crawl credit, or machine limits.

  • Perfect for collaboration, remote teams & extreme scale.