Image in label : clicking on it doesn't trigger the focus/check of the input

Site Outreach Issue #107550

Details

Created
Apr 27, 2014
Privacy
This issue is public.
Found in build #
0.0011
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

URL = http://codepen.io/mh-nichts/full/xaiyu

URL:

Repro Steps:

In a form, add an input and a label.
Associate them by giving an “id” to the input, and a “for” attribute to the label, that contain the same string of text.
Add an <img> tag in the label.
Try clicking on the label where the picture is.

You can see an example here : http://codepen.io/mh-nichts/full/xaiyu

Expected Results:

In a form, when you click on a label, the expected behaviour is that the associated input gets focused on (if its type is text) or checked/unchecked (if its type is checkbox or radio).
So when you have a picture included in the label, clicking on it should also trigger the focus/check of the associated input.

Actual Results:

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “IPBS P.”

      Changed Status to “Site Outreach”

      Changed Assigned To from “IPBS P.” to “Rossen A.”

    • Not working on Internet Explorer 11 - Windows 10.

      Version 11.576.14393.0
      Update version 11.0.38

    • test

      with text

    You need to sign in to your Microsoft account to add a comment.

    Sign in