![JavaScript: document.createElement incorrectly reported as deprecated - Report False-positive / False-negative... - Sonar Community JavaScript: document.createElement incorrectly reported as deprecated - Report False-positive / False-negative... - Sonar Community](https://europe1.discourse-cdn.com/sonarsource/uploads/sonarcommunity/optimized/3X/3/2/321ca7022087d146080f9bdd5e09542497094ae9_2_690x303.png)
JavaScript: document.createElement incorrectly reported as deprecated - Report False-positive / False-negative... - Sonar Community
![javascript - Why does `document.createElement` do not allow the creation of self-closing tags? - Stack Overflow javascript - Why does `document.createElement` do not allow the creation of self-closing tags? - Stack Overflow](https://i.stack.imgur.com/8QGpP.png)
javascript - Why does `document.createElement` do not allow the creation of self-closing tags? - Stack Overflow
Muhammad Azam Rajpoot on LinkedIn: To create a new HTML element, use document.createElement('tag'). For a…
![Trying to insert var newBtn = document.createElement('td'); and 2 buttons appear - JavaScript - SitePoint Forums | Web Development & Design Community Trying to insert var newBtn = document.createElement('td'); and 2 buttons appear - JavaScript - SitePoint Forums | Web Development & Design Community](https://global.discourse-cdn.com/sitepoint/original/3X/2/c/2c5a8cf7996791f51d2c82fcf7b276bbc64370dc.png)
Trying to insert var newBtn = document.createElement('td'); and 2 buttons appear - JavaScript - SitePoint Forums | Web Development & Design Community
![jhey △🐻🎈 on X: "Lil JavaScript Tip 🤏 Use Object.assign to create new elements in vanilla JavaScript land 🧱 const EL = Object.assign( document. createElement('button'), { className: 'fab', } ) You may find jhey △🐻🎈 on X: "Lil JavaScript Tip 🤏 Use Object.assign to create new elements in vanilla JavaScript land 🧱 const EL = Object.assign( document. createElement('button'), { className: 'fab', } ) You may find](https://pbs.twimg.com/media/Fbe8TZ7XoAEVj1A.jpg)