Path: csiph.com!eternal-september.org!feeder.eternal-september.org!.POSTED!not-for-mail From: Ben Bacarisse Newsgroups: comp.lang.javascript Subject: Re: simple question Date: Mon, 13 Nov 2017 01:20:09 +0000 Organization: A noiseless patient Spider Lines: 46 Message-ID: <87h8tzug8m.fsf@bsb.me.uk> References: <87375jwp8x.fsf@bsb.me.uk> <4024886.LvFx2qVVIh@PointedEars.de> <87shdjutqw.fsf@bsb.me.uk> <1926921.irdbgypaU6@PointedEars.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: reader02.eternal-september.org; posting-host="b80b3ed7826e0d9258f918897ab58f4d"; logging-data="27312"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX184ESfmEC/mwiyei+b2mSqZ3mNEboZJGc8=" Cancel-Lock: sha1:wYwf9HSAHTJyxs0KBLa0yCyV9gA= sha1:DjRkzNYDuoEtHzVA05HnoaGqAg4= X-BSB-Auth: 1.e436bda0ca3850937c8d.20171113012009GMT.87h8tzug8m.fsf@bsb.me.uk Xref: csiph.com comp.lang.javascript:34328 Thomas 'PointedEars' Lahn writes: > Ben Bacarisse wrote: > >> Thomas 'PointedEars' Lahn writes: >> >> Are you counting the "..."? (I would not be surprised!) Otherwise I >> see only one. > > The dots are the obvious syntax errors, yes. As I said, I am not surprised. You probably say "yes" when asked if you want red or white at a party. >>> simply would not do what you think it does. >> >> How on Earth do you know that? > > In your favor, I have assumed reasonable thinking, but obviously I was > wrong. > >> Obviously I'm guessing a bit about what the OP wants, but it does what >> I want! > > Oh, really? And what would that be? Don't be silly. You know perfectly well. The mystery is why you thought you knew it was not doing what I wanted. >>> Also, the HTML is still invalid. >> >> Of course. What possible value could there be in my adding the missing >> title element to the OP's HTML? > > The missing “title” element is not the problem because this code needs to be > inserted in an HTML document that is supposed to have a “title” element > already; the missing “type” attribute (HTML 4) or invalid (HTML 4.01/XHTML > 1.0 Strict)/obsolete (HTML 5) “language” attribute of the “script” element > is the problem. You have an odd notion of invalid HTML. The language attribute does not make the document non-conforming unless there is also a type attribute. -- Ben.