Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-10-01 Thread tee
I explored the html5boilerplate quite a bit, but decided to come up my own template instead. To its credit, it has some really nice stuff in there and I have adapted to my template too, but there are a number of elements that I found that really shouldn't be in there. If you are using the tem

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-10-01 Thread field . ninja
HI, Joined the chat a bit late, hope the following URL is helpful without being redundant. ___ Christopher Kennon Bushidodeep Principal/Developer/Designer (w) http://bushidodeep.com (e) field.ni...@gmail.com (gv) 818.322.4513 On S

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-29 Thread Rob Crowther
Oliver Boermans wrote: I don't have any personal experience with this stuff but your discussion rereminded me of a page I bookmarked recently: http://jdbartlett.github.com/innershiv/ Yep, that looks like the root of the problem: "doesn't work in Internet Explorer when an element's content is ad

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-29 Thread Oliver Boermans
I don't have any personal experience with this stuff but your discussion rereminded me of a page I bookmarked recently: http://jdbartlett.github.com/innershiv/ Sorry if it is not relevant, have not read the whole thread in detail. Hope it helps! -- Cheers Ollie @ollicle On Wednesday, September 2

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Rob Crowther
On 28/09/10 23:41, Steven Tan wrote: Strange, I expected the innerHTML part to fail. Any idea why that works? Nope! I expected one or the other of the two (DOM and innerHTML) to fail as surely jQuery is using one or other of them underneath? I haven't had time to dig in to the jQuery source a

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Steven Tan
Nice setup. Thanks for explaining it better than I do. ;) > > Load html5shiv, use innerHTML to create element, change with jQuery (works in > IE8): > http://www.boogdesign.com/examples/html5shiv-inner-jquery.html Strange, I expected the innerHTML part to fail. Any idea why that works? > > So

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Rob Crowther
Steven Tan wrote So watch out if you rely on js libraries that do something like this: $("body").append("something"); $("section").text("new something"); // this line will throw an error in IE. Hope that makes sense. Ah, I understand, interesting. I've done some example cases: Base ca

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Steven Tan
Sure. :) The issue i am encountering is when I generate HTML on the fly using js templates. I have a couple of templates written with sections and headers tags. Because html5 shiv only create the elements on document loads, it will not work the html5 tags that gets appended to the document late

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Rob Crowther
On 28/09/10 14:10, Steven Tan wrote: No, it doesn't. But if you use html5 tags in your templating, then it might. Just something to watch out for. Sorry, I'm not sure what you're saying here: no it doesn't what? It might what? One of my templates create a section and header for about 20 ti

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Steven Tan
No, it doesn't. But if you use html5 tags in your templating, then it might. Just something to watch out for. One of my templates create a section and header for about 20 times. Steven On 28/09/2010, at 8:49 PM, Rob Crowther wrote: > Steven Tan wrote: >> Also ran into an issue when i was usi

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Rob Crowther
Steven Tan wrote: Also ran into an issue when i was using js templating with html5 tags. Html5 shiv only ran once when the document loads. Either need call it again or use html4 tags. I am choosing html4 tags for now. Sigh. All the HTML5 shiv is doing is calling document.createElement against

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Steven Tan
Also ran into an issue when i was using js templating with html5 tags. Html5 shiv only ran once when the document loads. Either need call it again or use html4 tags. I am choosing html4 tags for now. Sigh. Steven On 28/09/2010, at 6:34 PM, "Patrick H. Lauke" wrote: > On 28/09/2010 07:12, Davi

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-28 Thread Patrick H. Lauke
On 28/09/2010 07:12, David Dorward wrote: On 27 Sep 2010, at 22:46, tee wrote: Quote Hugo, "It will create those elements for IE6-8 (and older browsers with lack of HTML5 support) in DOM." I suppose DOM will still work in older IEs when CSS is off yes? Yes To clarify though: the DOM will

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread David Dorward
On 27 Sep 2010, at 22:46, tee wrote: > Without CSS, wouldn't the browsers render the page just like normal HTML page > with browser default styling? Yes … so the blocks would collapse back to inline. > Quote Hugo, "It will create those elements for IE6-8 (and older browsers with > lack of HTML

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread Rob Crowther
On 27/09/10 22:46, tee wrote: Are these HTML5 tags inline elements by default or it's that (the latest) Firefox and Opera not yet supporting them? I thought they are of block elements. Firefox 4.0 will have support in the default stylesheet for the new HTML5 elements. It'll also have the HTML

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread tee
Thanks all for the help. display block it's is. I am so used to expecting Firefox to render everything correctly! When it doesn't, I couldn't think further :) Was going to use modernizr, therefor not worry about IE browsers, but didn't realize the script couldn't take care of CSS part. Are th

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread David Dorward
On 27 Sep 2010, at 11:13, tee wrote: > Only the two Webkit browsers are able to render the "header" and "footer" > correctly. Most browsers don't yet apply default styles to them. Current versions of IE don't recognise them at all without a JS shim. While you can use a JS shim and explicitl

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread designer
Tee: try putting: In the head, and/*for html5 in IE*/ article, aside, figure, figcaption, footer, header, mark, menu, nav, section, small, time, video { display : block; } (or whatever is relevant) in your CSS.Bob- Original Message - From: "tee" To: Sent: Monday, Sep

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread Hugo Mendes
I meant FEATURE Detection. Sorry. Hm. On Mon, Sep 27, 2010 at 11:34 AM, Hugo Mendes wrote: > A best practice: Do browser detection instead. > > > function html5elm(elm) { >        return !!document.createElement(elm); > } > > var myArray = ['header','nav','section','aside','article','footer','h

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread Hugo Mendes
A best practice: Do browser detection instead. function html5elm(elm) { return !!document.createElement(elm); } var myArray = ['header','nav','section','aside','article','footer','hgroup']; for (var i = 0; i < myArray.length; i++){ html5elm(myArray[i]); } It will create those

Re: [WSG] CSS support of HTML5 tags not ready yet?

2010-09-27 Thread Chris Knowles
try adding display: block - by default they are usually displayed as inline in ie you need to add them via javascript before it will recognise them: document.createElement("header"); -- Chris Knowles On 27/09/10 8:13 PM, tee wrote: Only the two Webkit browsers are able to render the "header