Use dynamicDowncast<T> more in html/.
Pull request: https://github.com/WebKit/WebKit/pull/20711
Committed 270960@main (ac6180867684): <https://commits.webkit.org/270960@main> Reviewed commits have been landed. Closing PR #20711 and removing active labels.
<rdar://problem/118632183>