NO BUG/DUPLCIATE: On the Frontend Elements that are in a Query get the ID added as a Class

Using Bricks 1.9.4 with the setting only add IDs to elements when needed (if that makes a difference in this bug).

I’ve notice that all the elements that are part of a query get the ID of the element added as a class. See:

image

In the example above the first li is a query and you can see it has a class called “brxe-718b0b”. In the backend this is not a class it is actually the ID of the element. This appears to happen on most elements whether or not the ID actually contains styling or not. As far as I can tell it happens on all elements in all queries I have.

I checked a few other sites and they all have the same problem.

I also see it appearing to happen on the Bricks homepage in the template section (I assume this is using a query and using Bricks 1.9.4).

image

Hi Tom,
An ID must be unique (it can only occur once per page), which is why it is converted into a class within the query loop. Otherwise, the HTML validator would spit fire :fire:

I’ll close this thread accordingly.

1 Like