Grammalecte  Check-in [0ca1346846]

Overview
Comment:[fx] fix observePage()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 0ca13468463562a0770613d7580fe44c9b162229f7505ed6cebee0ce24ddcda7
User & Date: olr on 2020-03-20 07:48:29
Other Links: manifest | tags
Context
2020-03-20
08:03
[build] change build option for Firefox Nightly check-in: f1955d65d4 user: olr tags: build, trunk
07:48
[fx] fix observePage() check-in: 0ca1346846 user: olr tags: fx, trunk
2020-03-19
21:28
[fr] faux positifs check-in: 447ca38057 user: olr tags: fr, trunk
Changes

Modified gc_lang/fr/config.ini from [1fa6bb5817] to [7e303b20b5].

     2      2   lang = fr
     3      3   lang_name = French
     4      4   locales = fr_FR fr_BE fr_CA fr_CH fr_LU fr_BF fr_BJ fr_CD fr_CI fr_CM fr_MA fr_ML fr_MU fr_NE fr_RE fr_SN fr_TG
     5      5   country_default = FR
     6      6   name = Grammalecte
     7      7   implname = grammalecte
     8      8   # always use 3 numbers for version: x.y.z
     9         -version = 1.7.0
            9  +version = 1.8.0
    10     10   author = Olivier R.
    11     11   provider = Grammalecte.net
    12     12   link = https://grammalecte.net
    13     13   description = Correcteur grammatical, orthographique et typographique pour le français.
    14     14   extras = README_fr.txt
    15     15   logo = logo.png
    16     16   

Modified gc_lang/fr/webext/content_scripts/init.js from [033ce72bd9] to [316d25a5ff].

   123    123                           let xNode = xMutation.addedNodes[i];
   124    124                           if (((xNode.tagName == "TEXTAREA"  &&  that.oOptions.textarea  &&  xNode.getAttribute("spellcheck") !== "false") || (xNode.isContentEditable  &&  that.oOptions.editablenode))
   125    125                               &&  that._isEligibleNode(xNode)) {
   126    126                               oGrammalecte.lButton.push(new GrammalecteButton(oGrammalecte.nButton, xNode));
   127    127                               oGrammalecte.nButton += 1;
   128    128                           }
   129    129                           else if (xNode.getElementsByTagName  &&  that.oOptions.textarea) {
   130         -                            for (let xNode of xNode.getElementsByTagName("textarea")) {
   131         -                                if (that._isEligibleNode(xNode)  &&  xNode.getAttribute("spellcheck") !== "false") {
   132         -                                    oGrammalecte.lButton.push(new GrammalecteButton(oGrammalecte.nButton, xNode));
          130  +                            for (let xSubNode of xNode.getElementsByTagName("textarea")) {
          131  +                                if (that._isEligibleNode(xSubNode)  &&  xSubNode.getAttribute("spellcheck") !== "false") {
          132  +                                    oGrammalecte.lButton.push(new GrammalecteButton(oGrammalecte.nButton, xSubNode));
   133    133                                       oGrammalecte.nButton += 1;
   134    134                                   }
   135    135                               }
   136    136                           }
   137    137                           else if (xNode.querySelectorAll  &&  that.oOptions.editablenode) {
   138         -                            for (let xNode of document.querySelectorAll("[contenteditable]")) {
   139         -                                if (that._isEligibleNode(xNode)) {
   140         -                                    oGrammalecte.lButton.push(new GrammalecteButton(oGrammalecte.nButton, xNode));
          138  +                            for (let xSubNode of xNode.querySelectorAll("[contenteditable]")) {
          139  +                                if (that._isEligibleNode(xSubNode)) {
          140  +                                    oGrammalecte.lButton.push(new GrammalecteButton(oGrammalecte.nButton, xSubNode));
   141    141                                       oGrammalecte.nButton += 1;
   142    142                                   }
   143    143                               }
   144    144                           }
   145    145                       }
   146    146                   }
   147    147               });