Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #13305
| From | "Jukka K. Korpela" <jkorpela@cs.tut.fi> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: A way of displaying an active Script |
| Date | 2012-04-09 08:17 +0300 |
| Organization | A noiseless patient Spider |
| Message-ID | <jltrce$c6s$1@dont-email.me> (permalink) |
| References | (2 earlier) <arbZDQPqFKfPFw$f@invalid.uk.co.demon.merlyn.invalid> <m2vclfgkal.fsf@nntp.bednarz.nl> <Cle$Q1L9U1fPFwsL@invalid.uk.co.demon.merlyn.invalid> <m28vi8cv65.fsf@nntp.bednarz.nl> <HOAO6mF51dgPFw2C@invalid.uk.co.demon.merlyn.invalid> |
2012-04-08 21:48, Dr J R Stockton wrote:
> I use Opera's context menu entry Validate nowadays; it accepts the
> following as tentatively valid (4 warnings, none mentioning the body).
> It submits to <http://validator.w3.org/>, the W3C Markup Validation
> Service.
>
> <!doctype HTML><title></title>
This means using an experimental linter (confusingly called "validator")
embedded into software that once was an SGML validator, then
transmogrified to a polymorphic checker. The experimental linter itself
emphasizes its experimental nature, and it purports to check against
"HTML5" without specifying which of the various drafts is referred to.
It often reflects drafts other than the current one.
Submitting the following document to SGML validation causes an error
message, since the document contains a reportable markup error:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<title></title>
The error message is typically this:
"HTML" not finished but document ended
This refers to the lack of a BODY element. The start tag and the end tag
are omissible but not the element. If you append, say, "!" to the
document, it becomes valid, since now it has a BODY element with the
character "!" as its content.
Browsers could not care less. They do not apply SGML parsing but their
own tag slurpers. They still imply a BODY element (with empty content)
in the invalid case.
ObJavaScript: This implies that document.body is defined (with empty
string as its content). However, this has little practical impact, as
you can hardly do anything useful with such a document anyway. So this
discussion has been rather pointless here (it would have been
theoretically interesting in another group), so now that even the
off-topic theory has been explained, there's no point in continuing
unless you wish to keep feeding you-know-who.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-02 23:40 +0100
Re: A way of displaying an active Script Dr.Kral@nyc.rr.com - 2012-04-03 14:58 -0400
Re: A way of displaying an active Script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-03 21:17 +0200
Re: A way of displaying an active Script John G Harris <john@nospam.demon.co.uk> - 2012-04-04 15:50 +0100
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-05 20:05 +0100
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-06 10:39 +0200
Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-06 15:03 +0000
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-06 21:20 +0200
Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-06 19:45 +0000
[OT] Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-06 22:39 +0200
Re: [OT] Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-06 22:18 +0000
Re: [OT] Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-07 00:40 +0200
Re: [OT] Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-07 02:33 +0200
Re: [OT] Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-07 19:25 +0100
Re: [OT] Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-08 07:38 +0000
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-07 19:20 +0100
Re: A way of displaying an active Script "Evertjan." <exjxw.hannivoort@interxnl.net> - 2012-04-08 07:52 +0000
Re: A way of displaying an active Script Gene Wirchenko <genew@ocis.net> - 2012-04-03 12:44 -0700
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-04 20:30 +0100
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-05 01:16 +0200
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-06 21:42 +0100
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-07 01:11 +0200
Re: A way of displaying an active Script Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2012-04-07 01:52 +0200
Re: A way of displaying an active Script Dr J R Stockton <reply1214@merlyn.demon.co.uk.not.invalid> - 2012-04-08 19:48 +0100
Re: A way of displaying an active Script "Jukka K. Korpela" <jkorpela@cs.tut.fi> - 2012-04-09 08:17 +0300
Re: A way of displaying an active Script Eric Bednarz <bednarz@fahr-zur-hoelle.org> - 2012-04-09 09:06 +0000
Re: A way of displaying an active Script John G Harris <john@nospam.demon.co.uk> - 2012-04-07 11:21 +0100
Re: A way of displaying an active Script Tim Streater <timstreater@greenbee.net> - 2012-04-07 12:26 +0100
Re: A way of displaying an active Script John G Harris <john@nospam.demon.co.uk> - 2012-04-07 15:16 +0100
csiph-web