Results 1 to 8 of 8
Thread: confused about modernizr....
Apr 23, 2013, 15:07 #1
- Join Date
- Jun 2009
- 2 Post(s)
- 0 Thread(s)
confused about modernizr....
I don't get what's happening with that "hello" example...
so for browsers that don't recognize the <article> tag the tag is wrapped in a div... and that's it??
and how do you then style these elements for browsers that don't recognize them?
var elm = document.createElement("DIV"); elm.innerHTML = "<article> Hello <\/article>"; document.body.appendChild(elm);
elm.innerHTML = "<article> Hello <\/article>";
so this is what you do for every HTML tag a browser doesn't recognize? like <section>?? just wrap it in a div??
and, again, how do you style these elements not recognized by IE??? (or other browsers that don't recognize certain elements, for example <details> is not supported in Android or Windows phones...)
I have used modernizr successfully for placeholders for text fields in forms, but I don't know what to do about HTML5 tags not supported by all browsers..