Visitar URL original
Allowed linked form onsubmit trigger · Issue #1766 · bUnit-dev/bUnit · GitHub
Skip to content

Allowed linked form onsubmit trigger #1766

Closed

Description

@linkdotnet

Currently, bUnit allows the following:

<form @onsubmit="...">
 <button type="submit">...
// This will trigger the onsubmit event
cut.Find("button").Click();

That follows the HTML spec very closely. But the following is not possible:

<form id="form1" @onsubmit="...">
</form>

<button form="form1" type="submit"></button>

This is a follow-up from #1765 reported by @Jorn96

Activity

  1. linkdotnet commented on Nov 2, 2025

    @linkdotnet
    CollaboratorAuthor

    Can be closed - if not, please repoen @egil

    CC @Jorn96

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions