JSFiddle - React, Tailwind, and code Playground
by nuysoft
JavaScript
document.body.innerHTML = '<div id="" class="box-content" mx-mouseenter="foo" mx-mouseleave="bar">tc</div>'
var target = document.body.firstChild
for (var i = 0; i < target.attributes.length; i++) {
console.log(target.attributes[i].name + ' = ' + target.attributes[i].value)
}