Results 100 comments of Philipp Fritsche

> IMO the first example you provide is ambiguous in what it does. It could either trigger focusOut or not. It doesn't mention anything about `focusOut`. There is no interaction...

![image](https://user-images.githubusercontent.com/39068198/191313511-71ad7587-6a33-40ad-a125-b697178dce06.png) PRs to the docs are welcome at https://github.com/testing-library/testing-library-docs/pulls

@Christian24 Interestingly we'll need to apply a workaround both on Jsdom and the browser to handle `delegatesFocus`. Invoking `shadowHost.focus()` does not delegate the focus in nested shadow trees while the...

> This entire conversation has caused me into looking into focus handling in Shadow DOM in a different light. It is a mess. It seems to work oddly differently everywhere....

Looks good now. Changes on top of the other PR: https://github.com/testing-library/user-event/pull/1038/files/cbe1391f14f8319ec737e48b3878caad80c6f3a5..HEAD

Changes to be reviewed here: https://github.com/testing-library/user-event/pull/1040/commits/b3222206f7b4c8dd66d01955be47cdb2f71dd8a4..HEAD

@Christian24 This should complete support for focus handling on shadow DOM

Thanks for the report :heart: There is a typo in the helper: https://github.com/testing-library/user-event/blob/1aa2027e5ec445ab413808556efa7763b65053d3/src/system/pointer/shared.ts#L30-L31

I'd rather not add any options to `.type()`, but remove the existing options in the future. Reasons from the linked issue regarding a `clear` option apply. The magic happening when...