All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sonar.l10n.javascript.rules.javascript.S2716.html Maven / Gradle / Ivy

The newest version!

Element selections that could be matched anywhere in the document can be very slow. That's why use of the universal selector, *, should be limited; it explicitly specifies that the match could be anywhere.

Noncompliant Code Example

$( ".buttons > *" );  // Noncompliant; extremely expensive

Compliant Solution

$( ".buttons" ).children(); // Compliant




© 2015 - 2025 Weber Informatics LLC | Privacy Policy