Jump to content


Photo

Html5 And Irock


  • Please log in to reply
4 replies to this topic

#1 matttti0

matttti0

    New Member

  • Members
  • Pip
  • 2 posts

Posted 20 June 2012 - 01:27 PM

Hi, i'm from Poland and I wonder about one thing. I write code in new HTML5 standards and learning JS from your Head First book. I'm on 3'rd chapter so far and I had stucked on resizing iRock for 2 hours on comparing my code to orginal or trying to get what's wrong by showing all variabales values on each moment. At least I figured that the gilty was in <!DOCTYPE html> tag and i wonder now why? Did that method changed for HTML5? Until that moment everything worked just fine. I don't want to go back to xhtml or html 4.01 for JS.

PS: Sorry for grammar mistakes.

Edited by matttti0, 20 June 2012 - 01:28 PM.


#2 drewdin

drewdin

    Super Veteran Member

  • Members
  • PipPipPipPipPipPipPipPipPipPipPip
  • 608 posts
  • Gender:Male
  • Location:Boston

Posted 20 June 2012 - 05:13 PM

Hi, i'm from Poland and I wonder about one thing. I write code in new HTML5 standards and learning JS from your Head First book. I'm on 3'rd chapter so far and I had stucked on resizing iRock for 2 hours on comparing my code to orginal or trying to get what's wrong by showing all variabales values on each moment. At least I figured that the gilty was in <!DOCTYPE html> tag and i wonder now why? Did that method changed for HTML5? Until that moment everything worked just fine. I don't want to go back to xhtml or html 4.01 for JS.

PS: Sorry for grammar mistakes.


I'm not sure what your asking here but if you want to use html5 just change the doctype and your fine.

#3 matttti0

matttti0

    New Member

  • Members
  • Pip
  • 2 posts

Posted 21 June 2012 - 12:02 PM

I'm not sure what your asking here but if you want to use html5 just change the doctype and your fine.

I'm asking why some Js functions doesnt work when i use <!DOCTYPE html>

#4 webleydevelopment

webleydevelopment

    New Member

  • Members
  • Pip
  • 2 posts

Posted 08 September 2012 - 04:31 PM

I'm asking why some Js functions doesnt work when i use <!DOCTYPE html>



It's something to do with the <!doctype html> declatation.
You can fix this by setting up some CSS...

<style type="text/css">
body, html {
width:100%;
height:100%;
margin:0px;
padding:0px;
}
</style>


Similar issue is posted here = http://forums.oreill...ing-with-xhtml/

#5 sammael1106

sammael1106

    New Member

  • Members
  • Pip
  • 1 posts

Posted 24 July 2013 - 09:49 AM

It's something to do with the <!doctype html> declatation.
You can fix this by setting up some CSS...

<style type="text/css">
body, html {
width:100%;
height:100%;
margin:0px;
padding:0px;
}
</style>


Similar issue is posted here = http://forums.oreill...ing-with-xhtml/


Thanks! It works!

Edited by sammael1106, 24 July 2013 - 10:06 AM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users