| 
| 
 | 
 | 
 | 
 | 
 | 
| 		
			
			 | 
		#1 | 
| 
			
			
			
			 Banned 
			
			
		
			
				
			
			
			Join Date: Oct 2003 
				Location: About to be evicted!!!! 
				
				
					Posts: 4,082
				 
				
				
				
				 | 
	
	
	
		
		
			
			 
				
				Doctype And Older Versions Of HTML
			 
			Can anyone explain why this works? 
		
	
		
		
		
		
		
		
		
		
		
	
	I used an online service to create a slideshow for my site. It worked on my Vista box, but on my XP box it only worked in Chrome, not in IE8. So I assumed it was in HTML5. Today I was playing with the code with a view to (a) using it on other sites, and (b) making a version that worked on all browsers. I discovered the slider was entirely Javascript, so should work on IE8. Buggering about with it, I found that adding a doctype tag (doctype html) made it work. Why should this be? Why when everything else appears to work 100% OK without a declaration of doctype, should one Javascript piece of code require a doctype declaration?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
			
		
		
		
	 | 
		
  | 
	
		
  |