Skip to content

Fix #2924: Update tests for <label form> removal spec change#2926

Merged
zcorpan merged 2 commits into
masterfrom
label-form-removed
May 13, 2016
Merged

Fix #2924: Update tests for <label form> removal spec change#2926
zcorpan merged 2 commits into
masterfrom
label-form-removed

Conversation

@zcorpan

@zcorpan zcorpan commented Apr 29, 2016

Copy link
Copy Markdown
Member

This tests whatwg/html#1120.

Issue: #2924

cc @tkent-google

@hoppipolla-critic-bot

Copy link
Copy Markdown

Critic review: https://critic.hoppipolla.co.uk/r/6456

This is an external review system which you may optionally use for the code review of your pull request.

In order to help critic track your changes, please do not make in-place history rewrites (e.g. via git rebase -i or git commit --amend) when updating this pull request.

@wpt-pr-bot

Copy link
Copy Markdown
Collaborator

Reviewers for this pull request are: @Ms2ger, @ayg, @gsnedders, @jdm, @jgraham, @plehegar, @sideshowbarker, @zcorpan, and @zqzhang.

<p><label id="label-form-form2" form="form2">label-form-form2</label>
<p><label id="label-with-control">label-with-control <input></label>
<p><label id="label-for" for="control-for-label">label-for</label> <input id="control-for-label">
</form>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should add one more here with a label pointing to an input that has a form attribute which points to form2. It's sort of tested by "form2" below, but there the control is not nested inside another form.

@annevk

annevk commented May 13, 2016

Copy link
Copy Markdown
Member

LGTM % nit.

@zcorpan zcorpan merged commit 0f1a6ff into master May 13, 2016
@zcorpan zcorpan deleted the label-form-removed branch May 13, 2016 18:52
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request May 26, 2016
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
josyeh pushed a commit to josyeh/gecko that referenced this pull request May 30, 2016
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
jryans pushed a commit to jryans/gecko-dev that referenced this pull request Jun 1, 2016
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
arronei pushed a commit to arronei/web-platform-tests that referenced this pull request Jun 14, 2016
ivanzr pushed a commit to ivanzr/web-platform-tests that referenced this pull request Jun 29, 2016
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Sep 30, 2019
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().

UltraBlame original commit: c4bde82ab5934ff314072d653abd983579ea0d23
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Sep 30, 2019
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().

UltraBlame original commit: c4bde82ab5934ff314072d653abd983579ea0d23
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Sep 30, 2019
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().

UltraBlame original commit: c4bde82ab5934ff314072d653abd983579ea0d23
rmottola added a commit to rmottola/Arctic-Fox that referenced this pull request Dec 2, 2024
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
sergiotarxz pushed a commit to sergiotarxz/JapacharBrowser that referenced this pull request Mar 22, 2026
…e. r=bkelly,hsivonen,surkov

The web platform tests changes are just a cherrypick of
web-platform-tests/wpt#2926 so I don't have to add
failure annotations until the next test uplift.

I've audited our uses of nsIFormControl, and this patch looks to me like it
preserves existing behavior in all but the following cases:

1)  nsXBLPrototypeHandler::DispatchXBLCommand, the case of scrolling when space
is pressed while something inside a <label> is focused.  We used to not scroll
in this situation; I think this is a bug, so I'm changing that behavior to
scroll instead.

2)  In Accessible::RelationByType for the RelationType::DEFAULT_BUTTON case,
when mContent is a <label> we used to return its form's default submit element.
Now we will just return Relation().
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants