-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.10, 3.10.7, 3.11.3, 4.0
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE
-
MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE
-
MDL-72849-master -
If you do the following command in browser console:
$x('name(//h2)')
|
It returns 'H2' in Firefox and 'h2' in Chrome.
As a result, the use of name() = 'img' in Behat xpath does not give consistent results across browsers in all cases. This only has an effect if it's trying to find a link containing an image with alt text where the image does not have the 'icon' CSS class.
I searched and only found those two usages.