Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #30726

Re: Failing to get DIV content to flip between initial and alternate version

From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Newsgroups comp.lang.javascript
Subject Re: Failing to get DIV content to flip between initial and alternate version
Date 2016-06-25 18:37 +0200
Organization PointedEars Software (PES)
Message-ID <8292076.eNJFYEL58v@PointedEars.de> (permalink)
References (1 earlier) <XnsA62A755FDFCC0eejj99@194.109.6.166> <9f7327d0-11b9-4ff1-98aa-e8f55701d962@googlegroups.com> <nk47km$81a$1@dont-email.me> <85fe3ea5-5a7f-4ae3-ba26-ee72c9ef9604@googlegroups.com> <nk5ep5$hc5$1@dont-email.me>

Show all headers | View raw


Stanimir Stamenkov wrote:

> Sat, 18 Jun 2016 13:50:58 -0700 (PDT), /Michael Haufe (TNO)/:
>> I would agree with you in principle only if the following is no
>> longer considered valid and is ignored in HTML5:
>>
>> <https://www.w3.org/TR/html4/interact/scripts.html#h-18.2.2>
> 
> "As HTML does not rely on a specific scripting language, document
> authors must explicitly tell user agents the language of each script."
> 
> I suspect this has never been true in reality.

It has been.

> JavaScript has ever been the only scripting language on the Web.

No, nor is it the only scripting language now (even the fact aside that 
there is not only one “JavaScript”, nor does “JavaScript” refer to all 
ECMAScript implementations in use in browsers).  The supported ECMAScript 
implementation is only the default scripting language since HTML5
(2014-10-28).

<https://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html#scriptingLanguages>
<https://www.w3.org/TR/2014/REC-html5-20141028/scripting-1.html#attr-script-type>

There is no harm in specifying the default scripting language in HTML5 
explicitly, though.
 
>> Also, contingent on downrev browser behavior. For instance, even
>> though older IE versions would trigger strict mode when seeing
>> the new doctype, they may indeed still follow the legacy
>> algorithm for determining script type.
> 
> If one has to support older browser versions it would need to be
> tested, and adjusted if not really working there.  Have you
> experienced a case/browser where it is not working?

Yes.
 
>> How many browsers are considered 100% HTML5 compliant right now
>> anyway? Not that they would need to be of course, but in this
>> particular case I haven't seen any stats one way or another on
>> whether this is implemented.
> 
> I'm speculating it is implemented in all recent version browsers,
> and probably supported by older version browsers, but I would like
> to see some representative stats, also.

There are a test case and some (old) results at 
<http://wayback.archive.org/web/20100904140711/http://pointedears.de/scripts/test/mime-types/> whose revival and update is still on my to-do list.
 
-- 
PointedEars
FAQ: <http://PointedEars.de/faq> | SVN: <http://PointedEars.de/wsvn/>
Twitter: @PointedEars2 | ES Matrix: <http://PointedEars.de/es-matrix>
Please do not cc me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Failing to get DIV content to flip between initial and alternate version $Bill <news@todbe.com> - 2016-06-16 23:18 -0700
  Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-17 11:32 +0200
    Re: Failing to get DIV content to flip between initial and alternate version $Bill <news@todbe.com> - 2016-06-17 19:00 -0700
      Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-18 11:35 +0200
        Re: Failing to get DIV content to flip between initial and alternate version $Bill <news@todbe.com> - 2016-06-18 19:16 -0700
          Re: Failing to get DIV content to flip between initial and alternate version Doc O'Leary  <droleary@2015usenet1.subsume.com> - 2016-06-19 14:23 +0000
            Re: Failing to get DIV content to flip between initial and alternate version $Bill <news@todbe.com> - 2016-06-20 04:13 -0700
              Re: Failing to get DIV content to flip between initial and alternate version $Bill <news@todbe.com> - 2016-06-20 04:16 -0700
                Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-26 12:53 +0200
                Re: Failing to get DIV content to flip between initial and alternate version $Bill <news@todbe.com> - 2016-06-26 16:22 -0700
                Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-27 10:49 +0200
                Re: Failing to get DIV content to flip between initial and alternate version Doc O'Leary  <droleary@2015usenet1.subsume.com> - 2016-06-27 13:58 +0000
                Re: Failing to get DIV content to flip between initial and alternate version Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-27 05:43 +0200
                Re: Failing to get DIV content to flip between initial and alternate version John Harris <niam@jghnorth.org.uk.invalid> - 2016-06-27 09:38 +0100
                Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-27 11:00 +0200
                Re: Failing to get DIV content to flip between initial and alternate version John Harris <niam@jghnorth.org.uk.invalid> - 2016-06-28 10:04 +0100
                Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-28 12:13 +0200
                Re: Failing to get DIV content to flip between initial and alternate version John Harris <niam@jghnorth.org.uk.invalid> - 2016-06-29 16:16 +0100
                Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-29 19:48 +0200
          Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-25 16:40 +0200
    Re: Failing to get DIV content to flip between initial and alternate version "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-18 10:59 -0700
      Re: Failing to get DIV content to flip between initial and alternate version Stanimir Stamenkov <s7an10@netscape.net> - 2016-06-18 22:32 +0300
        Re: Failing to get DIV content to flip between initial and alternate version "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-18 13:50 -0700
          Re: Failing to get DIV content to flip between initial and alternate version Stanimir Stamenkov <s7an10@netscape.net> - 2016-06-19 09:40 +0300
            Re: Failing to get DIV content to flip between initial and alternate version "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-06-19 12:21 -0700
            Re: Failing to get DIV content to flip between initial and alternate version Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2016-06-25 18:37 +0200
    Re: Failing to get DIV content to flip between initial and alternate version Stanimir Stamenkov <s7an10@netscape.net> - 2016-06-18 22:17 +0300
      Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-25 16:45 +0200
        Re: Failing to get DIV content to flip between initial and alternate version "Christoph M. Becker" <cmbecker69@arcor.de> - 2016-06-25 17:17 +0200
          Re: Failing to get DIV content to flip between initial and alternate version "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-06-25 19:02 +0200

csiph-web