No reason to use is<> for a couple of element names but hasTagName for all others.
Created attachment 451843 [details] Patch
Comment on attachment 451843 [details] Patch Looks like this was done intentionally way back in http://trac.webkit.org/changeset/152440/webkit, but also seems like it was not the right choice.
Committed r289777 (247245@main): <https://commits.webkit.org/247245@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 451843 [details].
<rdar://problem/88933767>