-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Form Mode opt-in handle outside submitters
Prior to this commit, the `Session.formElementIsNavigatable` method checked for the closest `<form>` element ancestor to its `element` argument. Unfortunately, checking for an ancestor form is an incomplete solution, since form controls can exist outside of the `<form>` elsewhere in the document and reference the form through their [`[form]`][form-attr] attributes. This commit incorporates a check for that into the `Session.formElementIsNavigatable` method. Since that method is only ever called on a submission's `submitter` argument after it's been verified to be present, this commit changes the signature to expect an `element` (by omitting the `?` modifier) and renames the method to `submitterIsNavigatable`. [form-attr]: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input#form
- Loading branch information
1 parent
c4d9b00
commit 3ae1d46
Showing
3 changed files
with
18 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters