Better explain my problem using examples:
I have a html file that contains something like
<a name="2846" href="Data.Product.html#2846" class="Function"> ... </a>
<a name="2877" href="Data.Product.html#2846" class="Function"> ... </a>
<a name="2911" href="Data.Product.html#2911" class="Function"> ... </a>
I want to select (by means of CSS selectors) elements that have class "Function", with href attribute ends with the exact value of name attribute. In the example above, only the following two will be selected
<a name="2846" href="Data.Product.html#2846" class="Function"> ... </a>
<a name="2911" href="Data.Product.html#2911" class="Function"> ... </a>
I think about that, maybe something along the line a.Function[href$=?]
. My question is can I refer to the value of name attribute in a selector, is there any way to do that?
Thanks!