mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-14 01:16:33 +00:00
We can't rely on Element.setAttribute() in cloneNode() since that will throw on weird attribute names. Instead, just follow the spec and copy attributes into cloned elements verbatim. This fixes a crash when loading the "issues" tab on GitHub repos. They are actually sending us unintentionally broken markup, but we should still support cloning it. :^)
86 KiB
86 KiB