Manipulate Document prototype for createElement
This fixes Shadydom SHIM breaking because we overrode createElement and then the metadata it adds goes missing, breaking websites.
BUG: 411556
Differential Revision: https://phabricator.kde.org/D23714