Home > syntax error > doctype error syntax error

Doctype Error Syntax Error

Contents

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn doctype syntax error firebug more about Stack Overflow the company Business Learn more about hiring developers or posting

Doctype Html Syntax Error Python

ads with us Drupal Answers Questions Tags Users Badges Unanswered Ask Question _ Drupal Answers is a question and answer

Syntaxerror Syntax Error Doctype Html

site for Drupal developers and administrators. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and

Uncaught Syntaxerror Unexpected Token Doctype

rise to the top Syntax error: (line 1) in Firebug up vote 3 down vote favorite 1 Firebug is complaining about a error in , but the HTML source is passing without problems the HTML W3C validator. Do you have any idea? Sorry, I can't share the source code. 7 share|improve this question edited Jul 18 at 23:36 kiamlaluno♦ 66.5k897192 asked May 5 '11 at uncaught syntaxerror unexpected end of input doctype 7:52 corbacho 8862820 Did you change the Document type, or is it the standard one used by Drupal? Which error does Firebug report? –kiamlaluno♦ May 5 '11 at 8:04 I changed in the theme page.tpl.php to use the HTML 5 doctype, but if I put the default Drupal Doctype also is throwing the error. There is no more information from Firebug than what it's in the title of the question. –corbacho May 5 '11 at 8:14 add a comment| 2 Answers 2 active oldest votes up vote 4 down vote accepted The reason was a failed loaded javascript file. I use the following code to add a JavaScript file: drupal_add_js($p . '/slider.js','module','footer'); So the following HTML was added in the footer of the page: At some point I renamed the file slider.js, so it stopped being loaded, and this is the reason behind the Firebug error. In the "Net" tab, Firebug was not showing any error; it was showing just a "301 Moved Permanently" next to the slider.js file. share|improve this answer edited May 5 '11 at 10:47 answered May 5 '11 at 8:21 corbacho 8862820 The filename was already slider.js. Do you me

here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of syntaxerror: expected expression, got '<' this site About Us Learn more about Stack Overflow the company Business html syntax error checker Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask doctype html syntax error in ie Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign http://drupal.stackexchange.com/questions/3143/syntax-error-doctype-html-line-1-in-firebug up firebug returns syntax error in doctype? up vote 31 down vote favorite 6 Why does Firebug return an error in my doctype? error syntax error ..... html firebug share|improve this question edited Oct 10 '11 at 17:29 asked http://stackoverflow.com/questions/7714896/firebug-returns-syntax-error-in-doctype Oct 10 '11 at 15:13 clarkk 4,51727100175 Is this the very first line in your HTML page? –Widor Oct 10 '11 at 15:17 There's no real reason not to use instead of the long version. –zatatatata Oct 10 '11 at 15:20 yes.. its the first line –clarkk Oct 10 '11 at 15:21 1 @Zanfa — Wanting to use a mature validator for a mature specification instead of an experimental validator for a draft, and changing, specification is a real reason. –Quentin Oct 10 '11 at 15:40 add a comment| 3 Answers 3 active oldest votes up vote 80 down vote accepted This usually happens because you are loading an HTML document as a script. This is often caused by (i.e. a relative URI pointing at the current, HTML, document)) or one of the scripts pointing to a 404 error. share|improve this answer answered Oct 10 '11 at 15:38 Quentin 488k56636807 1 +1 was about to answer with the same thing. –Spudley Oct 10 '11 at 15:42 1 just saved me a load of

Learn Bootstrap Learn Graphics Learn Icons Learn How To JavaScript Learn JavaScript Learn jQuery Learn jQueryMobile Learn AppML Learn AngularJS Learn JSON Learn AJAX Server Side http://www.w3schools.com/tags/tag_doctype.asp Learn SQL Learn PHP Learn ASP Web Building Web Templates Web Statistics Web Certificates XML Learn XML Learn XSLT Learn XPath Learn XQuery × HTML HTML Tag Reference HTML Event Reference HTML Color Reference HTML Attribute Reference HTML Canvas Reference HTML SVG Reference Google Maps Reference CSS CSS Reference CSS Selector Reference W3.CSS Reference Bootstrap Reference Icon Reference JavaScript JavaScript syntax error Reference HTML DOM Reference jQuery Reference jQuery Mobile Reference AngularJS Reference XML XML Reference XML Http Reference XSLT Reference XML Schema Reference Charsets HTML Character Sets HTML ASCII HTML ANSI HTML Windows-1252 HTML ISO-8859-1 HTML Symbols HTML UTF-8 Server Side PHP Reference SQL Reference ASP Reference × HTML/CSS HTML Examples CSS Examples W3.CSS Examples Bootstrap Examples JavaScript JavaScript Examples HTML DOM html syntax error Examples jQuery Examples jQuery Mobile Examples AngularJS Examples AJAX Examples XML XML Examples XSL Examples XSLT Examples XPath Examples XML Schema Examples SVG Examples Server Side PHP Examples ASP Examples Quizzes HTML Quiz CSS Quiz JavaScript Quiz Bootstrap Quiz jQuery Quiz PHP Quiz SQL Quiz XML Quiz × HTML Reference HTML by Alphabet HTML by Category HTML Attributes HTML Global Attributes HTML Events HTML Colors HTML Canvas HTML Audio/Video HTML Character Sets HTML Doctypes HTML URL Encode HTML Language Codes HTML Country Codes HTTP Messages HTTP Methods PX to EM Converter Keyboard Shortcuts HTML Tags