Tests that src and href element targets are rewritten properly.