dcsimg
www.webdeveloper.com
Results 1 to 6 of 6

Thread: Parse error in Doctype definition

  1. #1
    Join Date
    Aug 2007
    Location
    London
    Posts
    410

    Parse error in Doctype definition

    Hi,

    I'm getting weird parse errors in Webkit's web inspector where it says that this line:

    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    gives a parsing error.

    Any ideas?

  2. #2
    Join Date
    Jul 2009
    Posts
    35
    that doctype looks perfect to me

  3. #3
    Join Date
    Nov 2002
    Location
    Baltimore, Maryland
    Posts
    12,279
    Please post a link to the page itself.
    “The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect.”
    —Tim Berners-Lee, W3C Director and inventor of the World Wide Web

  4. #4
    Join Date
    Aug 2007
    Location
    London
    Posts
    410
    @ Charles:

    I can't because it is locally hosted for development. I can post the current source but could the problem be in this line:

    HTML Code:
    <html xmlns="http://www.w3.org/1999/xhtml">
    ?

  5. #5
    Join Date
    Nov 2009
    Location
    london
    Posts
    4
    just hang tight i will get back to u soon

  6. #6
    Join Date
    Aug 2007
    Location
    London
    Posts
    410

    resolved

    I actually solved the problem (I should've posted it here, I apologise).

    It appears that webkit (and Gecko for that matter) were interpreting the entire document as javascript... I'm not entirely sure why but when I looked at the DOM structure I notices that that was indeed what it was doing. Why it only threw a parse error for the DOCTYPE definition I'm not sure. I removed some scripts from the bottom of my document and put them in the <head> and now it works fine. A bit strange but oh well.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles