[tests] Fix ReactDOMAttribute-test (#35654)
In https://github.com/facebook/react/pull/35646 I thought there was a bug in trusted types, but the bug is in jsdom. For trusted types we still want to check the coersion and throw for a good dev warning, but prod will also throw becuase the browser will implicitly coerce to a string. This ensures there's no behavior difference between dev and prod. So the right fix is to add in the JSDOM hack that's used in `ReactDOMSelect-test.js`.
R
Ricky committed
230772f99dac80be6dda9c59441fb4928612f18e
Parent: 90b2dd4
Committed by GitHub <noreply@github.com>
on 1/28/2026, 9:00:40 PM