Click here to Skip to main content
15,881,757 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I have created a HTML5 webpage in which few spans appears by 'slideDown'(the jQuery style :)). But i'm having problems with animating it. So i tried the following.

1. Commented the entire DOCTYPE tag

HTML
<!--<!DOCTYPE html>-->
<html xmlns="http://www.w3.org/1999/xhtml">


Result: it's working as expected, only in IE 9, but are missing in firefox and chrome. But audio tag added not seemed to be working. Also CSS3 was also not working (i had a rotate style added to 2 of the spans)

2. Uncommented the DOCTYPE tag

HTML
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">


Result: Audio tag is now working, but not able to see the slideDown effect or the span at all!. All this is happening only in IE9, firefox and chrome seems to be too far.

3. Commented the entire DOCTYPE tag again

HTML
<!--<!DOCTYPE html>-->
<html xmlns="http://www.w3.org/1999/xhtml">


Result: Both Audio and animations including CSS3 styles are working in IE, but still not in firefox and chrome.



Can anyone please advice if i've missed out anything or anything specifically needs to be added for HTML5 and CSS3 to work together?
Posted
Comments
Sergey Alexandrovich Kryukov 12-Feb-12 0:23am    
Good piece of analysis and experiment, keep doing it. I want to credit you with my 5. As to the problem itself... what can you do? because -- see my answer.
--SA
DieOnTime 12-Feb-12 2:33am    
Thanks alot. :)

I don't think you are missing anything. It's just the support of HTML5 by browsers sucks — at this time.

Please refer to this comparison chart:
http://en.wikipedia.org/wiki/Comparison_of_layout_engines_%28HTML5%29[^],
http://en.wikipedia.org/wiki/HTML5[^].

—SA
 
Share this answer
 
You might want to check if your versions of Firefox and Chrome support these features.
This thread[^] might provide some additional information.
 
Share this answer
 
Comments
DieOnTime 12-Feb-12 2:37am    
Thank you Abhinav. My firefox version is 10.0 and chrome version is 17.0. Looks supportive.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900