Get href from parent anchor of known span child

I am able to get the child element (that has a class) but need to get the href from a-element parent

This is the HTML structure:

  <a href="/linkIWantToGet">
    <span class="SPANCLASS">
      BlaBla
    </span>
  </a>

I tried

{
"extractAttribute":"href",
"id":"list2",
"multiple":false,
"parentSelectors":["initialLink"],
"selector":"span.SPANCLASS:parent",
"type":"SelectorElementAttribute"
},

But doesn't work.
I also tried, without luck either:

{
"extractAttribute":"href",
"id":"list2",
"multiple":false,
"parentSelectors":["initialLink"],
"selector":"span.SPANCLASS:parent",
"type":"SelectorElementAttribute"
},

I tried also (without success) - it doesn't retrieve the href. seems not to get to the parent;
Selectors:

{
"id":"Identifier",
"multiple":true,
"parentSelectors":[
"initialLink"
],
"selector":"span.SPANCLASS",
"type":"SelectorElement"
},

{
"extractAttribute":"href",
"id":"list2",
"multiple":false,
"parentSelectors":[
"Identifier"
],
"selector":"_parent_",
"type":"SelectorElementAttribute"
}

@labregowski Hi, have you tried using an 'Element attribute' selector -
a[href]:has(span.SPANCLASS) with an attribute name 'href'?

Learn more: Web Scraper << How to >> Extract data from element attribute