Open
Description
Preconditions (*)
Magento/2.4 (Enterprise)
Steps to reproduce (*)
In javascript code, create an element without parent, then call remove
function. For example:
document.createElement('div').remove()
- Browse to Magento 2.4 website.
- Open console
- Run document.createElement('div').remove()
Expected result (*)
Nothing happen.
Actual result (*)
An exception thrown:
Uncaught TypeError: Cannot read properties of null (reading 'removeChild')
at remove (legacy-build.min.js:formatted:1759:22)
at HTMLDivElement._methodized [as remove] (legacy-build.min.js:formatted:396:22)
at <anonymous>:1:31
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedMay be fixed according to the position in the backlog.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchIssue related to Developer Experience and needs help with Triage to Confirm or Reject it