Solved

HTML Doctype Syntax Error

Posted on 2011-09-27
7
1,018 Views
Last Modified: 2012-06-27
I'm getting a syntax error on the doctype and I don't know why...

http://74.81.196.208/dragoncustomgolf/

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
0
Comment
Question by:webdork
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 36712622
Looks fine from here and the W3C Validator (though it complains about a few other things).  Who or what is telling you it's an error?
0
 
LVL 13

Assisted Solution

by:haloexpertsexchange
haloexpertsexchange earned 150 total points
ID: 36712647
The error shows up in firebug.
If you click on the line it highlights this line,
FB.provide('JSON',{stringify:function(a){if(window.Prototype&&Object.toJSON){return Object.toJSON(a);}else return JSON.stringify(a);},parse:function(a){return JSON.parse(a);},flatten:function(c){var a={};for(var b in c)if(c.hasOwnProperty(b)){var d=c[b];if(null===d||undefined===d){continue;}else if(typeof d=='string'){a[b]=d;}else a[b]=FB.JSON.stringify(d);}return a;}});

Open in new window

in http://connect.facebook.net/en_US/all.js, line 9.
0
 

Author Comment

by:webdork
ID: 36712658
Firefox Web Developer Toolbar has a link to the error console. Also in IE (lower left error indicator).

Yes, W3C Val i'm working through those.
0
Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

 

Author Comment

by:webdork
ID: 36712681
thanks haloexpertsexchange:

I dont see that in my Firebug. Can you tell me how you got that to display? Also, whats it mean?
0
 
LVL 13

Expert Comment

by:haloexpertsexchange
ID: 36712732
Do you have a facebook connect for your site? Based on the page name I would think that something was messing up with that.
But now when I look at it again that is not the file that shows up when I click on the error.
0
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 350 total points
ID: 36713472
Below is the recommendation from this 'official' page followed by yours from your web page.  I don't see any difference.  ??

http://74.81.196.208/dragoncustomgolf/# is the URL in the Error Console.  I don't see any Facebook connections on that page.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

Open in new window

0
 

Author Closing Comment

by:webdork
ID: 36713666
Thanks
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question