I`m trying to learn java script with the Simply java script book but i want to implement it on HTML5 web sites.
1. is the DOM different in HTML5? like I want to use the getElementsByTagName method, is it different when using an html5 page?

2. are there other differences between programming Java Script for HTML5 them for XHTML??? and if so how do I overcome those differences.

thank u for helping.