You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execute document.body.innerHTML = "<svg><select>" in DevTools
Confirm that the Bitwarden throws an error
Expected Result
The select element is ignored because it's not an HTMLSelectElement.
Actual Result
The select element inside the svg namespace is treated as HTMLSelectElement. However, it's actually an SVGElement, which causes the error to be thrown.
Screenshots or Videos
No response
Additional Context
The error is thrown in this line because the element.options is undefined for the SVGElement
I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
The text was updated successfully, but these errors were encountered:
Steps To Reproduce
document.body.innerHTML = "<svg><select>"
in DevToolsExpected Result
The
select
element is ignored because it's not anHTMLSelectElement
.Actual Result
The
select
element inside thesvg
namespace is treated asHTMLSelectElement
. However, it's actually anSVGElement
, which causes the error to be thrown.Screenshots or Videos
No response
Additional Context
The error is thrown in this line because the
element.options
is undefined for theSVGElement
clients/apps/browser/src/autofill/services/collect-autofill-content.service.ts
Line 827 in 341a93a
Checking the namespace or the prototype in this function should prevent the error.
clients/apps/browser/src/autofill/utils/index.ts
Lines 234 to 236 in 341a93a
Operating System
Windows
Operating System Version
No response
Web Browser
Firefox
Browser Version
132.0.2
Build Version
2024.11.0
Issue Tracking Info
The text was updated successfully, but these errors were encountered: