HI,
Joined the chat a bit late, hope the following URL is helpful
without being redundant.
http://html5boilerplate.com/
___
Christopher Kennon
Bushidodeep
Principal/Developer/Designer
(w) http://bushidodeep.com
(e) field.ni...@gmail.com
(gv) 818.322.4513
On
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
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
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
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 HTML5
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
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 re...@splintered.co.uk wrote:
On
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
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 robe...@boogdesign.com wrote:
Steven Tan wrote:
Also ran into an
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
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
Steven Tan wrote
So watch out if you rely on js libraries that do something like this:
$(body).append(sectionsomething/section);
$(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:
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 it
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
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
A best practice: Do browser detection instead.
script type=text/javascript
function html5elm(elm) {
return !!document.createElement(elm);
}
var myArray = ['header','nav','section','aside','article','footer','hgroup'];
for (var i = 0; i myArray.length; i++){
I meant FEATURE Detection. Sorry.
Hm.
On Mon, Sep 27, 2010 at 11:34 AM, Hugo Mendes hugo.men...@gmail.com wrote:
A best practice: Do browser detection instead.
script type=text/javascript
function html5elm(elm) {
return !!document.createElement(elm);
}
var myArray =
Tee: try putting:!--[if IE]
script src=http://html5shiv.googlecode.com/svn/trunk/html5.js;/script
![endif]--
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
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 explicitly set
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
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
21 matches
Mail list logo