Reputation: 1882
Are there any known issues with custom elements created like so:
var body = document.body;
var spann = document.createElement("spann");
body.appendChild(spann);
in modern browsers, IE8+, Chrome 29+, FF 38+, Safari 8+
Upvotes: 0
Views: 43
Reputation: 82337
There shouldn't be any issues, what you have shown will work.
You are creating an HTML5 element if it is not one of the original set of elements. Keep in mind that your spann
element with actually be styled like the default HTML5 element, which is essentially a span; no padding or margin, display inline.
Upvotes: 1