https://bugzilla.wikimedia.org/show_bug.cgi?id=71522

            Bug ID: 71522
           Summary: Disabling javascript on olderbrowsers should turn on
                    the <noscript> handling
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: ResourceLoader
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: yu...@wikimedia.org
                CC: krinklem...@gmail.com, roan.katt...@gmail.com,
                    tpars...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

If we abort javascript loading whenever the browser is "too old to support", we
ought to honor the <noscript> tags and do two things:

* The content of the <noscript> should be inserted into the parent element in
its place.
* Remove <script> tags and scriptable attributes from HTML.

Magic code written by Timo

[].forEach.call($$('noscript'), function(nos) { div =
document.createElement('div'); div.innerHTML = nos.textContent;
nos.parentNode.replaceChild(div, nos); });

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to