struct-use-14-f.svg

FAIL

raster image of use-14-f.png raster image of use-14-f.png
raster image of use-14-f.png raster image of use-14-f.png

Operator Script

Run the test. No interaction required.

Pass Criteria

The test is passed if there is a green square visible on the page, and no red.

Test Description

Test that the 'use' element's 'xlink:href' attribute referencing dynamically set 'id' attributes is supported.

The test defines a 'use' element with its 'xlink:href' attribute set to 'pass' which is an invalid element id. A green 'rect' element has its 'id' attribute set to 'pass' via 'setAttribute'. The referenced 'rect' is a child of a 'defs' element so that it does not render, and it is wrapped with a 'g' element in order to obtain a DOM reference to it.