h2 element is there but XQuery doesn't return h2 element

The HTML text when you query google for a given keyword contains several h2 elements.

However, the XQuery “for $d in //h2 return $d” does not return anything, whereas “for $d in //a return $d” does work.

Any ideas on what I’ve done wrong?

Thanks in advance