Loading ...
Sorry, an error occurred while loading the content.

141Re: body tag

Expand Messages
  • Douglas Crockford
    Aug 4, 2008
      --- In jslint_com@yahoogroups.com, "riderpaulpaul" <riderpaul@...> wrote:
      > One big issue in JavaScript is the onload issue. Many of the
      > frameworks have a periodic check to see if the body has loaded using
      > various methods.
      > Since script tags can be in the HTML head (outside the HTML body), why
      > can't one simply place the initiating script tag between [/body] and
      > [/html]. It seems to me like this solves a lot of problems.
      > Semantically it also make sense to place the tag there, rather then in
      > the body that is being manipulated by the script.
      > [html]
      > [head][/head]
      > [body][/body]
      > [script][/script]
      > [/html]

      I don't see how it solves anything. There is a lot in the HTML
      recommendations that doesn't make sense, but the requirement that the
      tags all go either into the head or the body seems pretty reasonable.
    • Show all 5 messages in this topic