Tag Archives: html

Creating new HTML elements

It’s possible to create new HTML elements, and apply presentation and action to it.

Jon Resig mentions it here, suggesting it would be a good way to implement HTML5 in an earlier browser.
http://ejohn.org/blog/html5-shiv/

He’s right.  It would be good.  But I can see applications of it for microformats and semantic markup too.
If you attach behaviors (using Dean Edwards’ Mozilla extension) to the element, you can add script actions as well as style.

So you can essentially rewrite the browser using JS. Continue reading Creating new HTML elements