Can I get a button in shadowDOM to submit a form not in shadowDom?
问题 I just ran into an interesting situation where I have a submit <button> inside the shadowDOM of a native custom element that is placed inside a <form> . <form id="one" action="" method="get"> <s-button>Select</s-button> #shadow-root <button>...</button> <button>Outside</button> </form> I also have a <button> as a direct child of the <form> . The child <button> causes the form to submit. But the <button> in the shadow-root does not. In a way I guess this makes sense. But has anyone figured out