- From: Corey Salzano <corey.salzano@gmail.com>
- Date: Wed, 14 Jan 2009 10:08:21 -0500
- To: www-validator@w3.org
- Message-ID: <c31156430901140708h3754fccax24f6eb05c5820aa4@mail.gmail.com>
The error "NET-enabling start-tag requires SHORTTAG YES" is vague and somewhat meaningless to me as a developer without further description. The error description for '**document type does not allow element "SCRIPT" here.' describes HTML self-closing tags with language that provides clues that may help users that encounter the SHORTTAG YES error. 'Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).' Specifically, the words "implicitly closed elements" and "self-closing tags" indicate the issue at hand more clearly than the "FOO" example provided for the error "NET-enabling start-tag requires SHORTTAG YES." 'The sequence <FOO /> can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag <FOO (with an implied '>'). However, since many browsers don't interpret it this way, even in the presence of an HTML 4.01 Strict DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve its use solely for those written in XHTML.' Thanks Corey Salzano
Received on Thursday, 15 January 2009 10:19:49 UTC