Path: csiph.com!feeder.erje.net!1.eu.feeder.erje.net!weretis.net!feeder1.news.weretis.net!news.solani.org!.POSTED!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript Subject: Re: Failing to get DIV content to flip between initial and alternate version Supersedes: <5991892.9J7NaK4W3v@PointedEars.de> Date: Sat, 25 Jun 2016 18:37:56 +0200 Organization: PointedEars Software (PES) Lines: 57 Message-ID: <8292076.eNJFYEL58v@PointedEars.de> References: <9f7327d0-11b9-4ff1-98aa-e8f55701d962@googlegroups.com> <85fe3ea5-5a7f-4ae3-ba26-ee72c9ef9604@googlegroups.com> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit X-Trace: solani.org 1466872677 11841 eJwFwYEBwDAEBMCVXnhinKD2H6F3VBfvMKcbl2sRoQ/JTPkO+5Ij+VB9YNXQcdxw0y3OWfz+YRA/ (25 Jun 2016 16:37:57 GMT) X-Complaints-To: abuse@news.solani.org NNTP-Posting-Date: Sat, 25 Jun 2016 16:37:57 +0000 (UTC) User-Agent: KNode/4.14.2 Cancel-Key: sha1:rph4ymvvTaoFk7zGAxa5i55tW3M= X-User-ID: eJwNyMEBwCAIA8CVRAKRcQBl/xHae56pizfh5rCx4bPeN1CSU70g05U2tYPIYWvzoKgh717qQszZD0fkn0z/AHPhFfc= Cancel-Lock: sha1:asq7vEZng+sCoSy3H0+aPvnc2rs= X-NNTP-Posting-Host: eJwNxscBwDAIBLCVjOEo4xDK/iM4egmspGWiUMFig4t39js35TSKFElUCOv03NzxP36ti6JyHi2lEh4= Xref: csiph.com comp.lang.javascript:30726 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: >> >> > > "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). 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 whose revival and update is still on my to-do list. -- PointedEars FAQ: | SVN: Twitter: @PointedEars2 | ES Matrix: Please do not cc me. / Bitte keine Kopien per E-Mail.