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


Groups > comp.lang.javascript > #27153

Re: Forced to browser-sniff Safari version

From Richard Maher <maher_rjSPAMLESS@hotmail.com>
Newsgroups comp.lang.javascript
Subject Re: Forced to browser-sniff Safari version
Date 2015-04-01 20:35 +0800
Organization Aioe.org NNTP Server
Message-ID <mfgona$ph5$1@speranza.aioe.org> (permalink)
References <mfgbeg$otv$1@speranza.aioe.org> <14p6gba3vihvk$.13hyy95el3gl8$.dlg@40tude.net>

Show all headers | View raw


On 4/1/2015 8:19 PM, JJ wrote:
> Don't rely on User-Agent to determine the browser engine and version.
> Detect by browser features and bugs instead.
>
On 4/1/2015 8:19 PM, JJ wrote:
 > Don't rely on User-Agent to determine the browser engine and version.
 > Detect by browser features and bugs instead.
 >
Excellent! Please show me (or even just tell me) how you you would 
detect Safari's implementation of speechSynthesis not .speak()ing or an 
ONEND event listener not firing on a completed SpeechSynthesisUtterance.

Implementation details left as an exercise for the reader?

Just thought you'd trot out some bullshit you read in Javascript Weekly?

To help you out here's my *SSCCE* again as you forgot to quote anything: -

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function fini()
{
     alert("end");
}
function talk()
{
     if (!('speechSynthesis' in window)) {
         alert("Unsupported browser");
         return;
     }

     alert("Getting ready.");
     var utterance = "Hello World";
     var chat = new SpeechSynthesisUtterance(utterance);

     chat.addEventListener('end', fini, false);

     speechSynthesis.speak(chat);

}
</script>
</head>
<body>

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


Thread

Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-01 16:49 +0800
  Re: Forced to browser-sniff Safari version JJ <jj4public@vfemail.net> - 2015-04-01 19:19 +0700
    Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-01 20:35 +0800
      Re: Forced to browser-sniff Safari version Denis McMahon <denismfmcmahon@gmail.com> - 2015-04-01 14:50 +0000
        Re: Forced to browser-sniff Safari version Scott Sauyet <scott.sauyet@gmail.com> - 2015-04-01 09:35 -0700
          Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 06:29 +0800
        Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 06:28 +0800
          Re: Forced to browser-sniff Safari version "Christoph M. Becker" <cmbecker69@arcor.de> - 2015-04-02 01:04 +0200
      Re: Forced to browser-sniff Safari version Andrew Poulos <ap_prog@hotmail.com> - 2015-04-02 10:53 +1100
        Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 09:18 +0800
          Re: Forced to browser-sniff Safari version Andrew Poulos <ap_prog@hotmail.com> - 2015-04-02 15:12 +1100
        Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 10:25 +0800
          Re: Forced to browser-sniff Safari version Andrew Poulos <ap_prog@hotmail.com> - 2015-04-02 18:44 +1100
  Re: Forced to browser-sniff Safari version "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-04-01 17:59 -0700
    Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 10:20 +0800
      Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 20:27 +0800
        Re: Forced to browser-sniff Safari version Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 21:06 +0800
          Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-02 21:55 +0800
            Re: Opera mobile has laryngitis "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2015-04-02 16:28 -0700
              Re: Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-03 07:38 +0800
                Re: Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-03 07:56 +0800
                Re: Opera mobile has laryngitis Swifty <steve.j.swift@gmail.com> - 2015-04-04 07:47 +0100
                Re: Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-05 08:12 +0800
                Re: Opera mobile has laryngitis Ed Jay <edMbj@aes-intl.com> - 2015-04-05 08:59 -0700
                Re: Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-06 06:56 +0800
                Re: Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-03 10:02 +0800
              Re: Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-03 08:14 +0800
            Re: Opera mobile has laryngitis Wally W. <ww84wa@aim.com> - 2015-04-04 12:49 -0400
              Re: Opera mobile has laryngitis Richard Maher <maher_rjSPAMLESS@hotmail.com> - 2015-04-05 08:18 +0800

csiph-web