SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    ♪♪ ♪ ♪ ♪ ♪♪ ♪ ♪♪ Markdidj's Avatar
    Join Date
    Sep 2002
    Location
    Bournemouth, South UK
    Posts
    1,551
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    innerHTML and HTML DTD

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

    when I write this at the top of my HTML document, the program no loger runs. I have tried using the transitional one too.

    Is that because I use the innerHTML command? The innerHTML that has been recently made cross browser, and probably a future standard.....

    Google is determined not to index my site!!!
    LiveScript: Putting the "Live" Back into JavaScript
    if live output_as_javascript else output_as_html end if

  2. #2
    JavaScript Guru (Big Ego) Arielladog's Avatar
    Join Date
    Jul 1999
    Location
    SC, USA
    Posts
    390
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: innerHTML and HTML DTD

    Originally posted by Markdidj

    when I write this at the top of my HTML document, the program no loger runs. I have tried using the transitional one too.
    What program?? The JavaScript script you created or google.com

    As far as I know, using that DOCTYPE thing shouldn't affect anything in an adverse way. Do you have a link?

    aDog

  3. #3
    Currently Occupied; Till Sunda Andrew-J2000's Avatar
    Join Date
    Aug 2001
    Location
    London
    Posts
    2,475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I would beleive that it is due to the structure of your document, which is not well formed in anyway. There should be no reason for the doctype to affect the HTML document or is this HTA? As you mention it is a program.

    Parse your document through http://validator.w3.org/ and correct any syntax errors.


Bookmarks

Posting Permissions

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