delete in removeAttribute causes TypeError
See original GitHub issuePlease note that in the following only the second delete
is in a try
catch
:
The first delete
in
causes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Cant_delete exceptions for some web components that implement attribute ↔ property reflection with Object.defineProperty
.
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
removeAttribute() doesn't work DOM - Stack Overflow
The code is simply omitting to perform the create/change action before the removeAttribute call, but does so correctly for getAttribute.
Read more >Element.removeAttribute() - Web APIs - MDN Web Docs
The Element method removeAttribute() removes the attribute with the specified name from the element. Syntax. removeAttribute(attrName)
Read more >TypeError: Cannot read property 'remove' of Undefined in JS
The "Cannot read property 'remove' of undefined" error occurs for 2 reasons: Calling the remove() method on a DOM element that doesn't exist....
Read more >Error when trying to remove a lightning component's <design ...
These are the steps I performed: 1. Remove use of the involved Lightning Component from all Lightning Page using Lightning App Builder 2....
Read more >Remove the Attribute from an Element - JavaScript Tutorial
Summary: in this tutorial, you will learn how to use the JavaScript removeAttribute() to remove the attribute with the specified name from the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Released in https://github.com/tbranyen/diffhtml/releases/tag/v1.0.0-beta.27
Fix opened here @cetinsert https://github.com/tbranyen/diffhtml/pull/262