Suggestion: wildcards in class ids

I seen several sites put ids on elements that are numbered: .e.g phmaincontent_1_lvYear_lvMonthYear_0_lvArticles_0_lnkMediaReleasesAll_0
They are unselectable because the id changes. If the id selector took wildcards it could grab all of these.

This is already possible in Feed Creator. Have a look at the attribute selectors we support.

To use your example, let’s say there’s an element:

<div id="phmaincontent_1_lvYear_lvMonthYear_0">
  Content
</div>

You can match this with CSS using a selector like this:

div[id*="phmaincontent"]

or

div[id^="phmaincontent"]

Great thank you so much!

1 Like