Last modified: 2014-10-07 21:32:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T73522, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 71522 - Disabling javascript on olderbrowsers should turn on the <noscript> handling
Disabling javascript on olderbrowsers should turn on the <noscript> handling
Status: NEW
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-10-01 18:12 UTC by Yuri Astrakhan
Modified: 2014-10-07 21:32 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Yuri Astrakhan 2014-10-01 18:12:04 UTC
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); });
Comment 1 Yuri Astrakhan 2014-10-07 21:32:21 UTC
It seems like this bug affects login & editing on Opera Mini, and possibly IE6 and other "bad-js" browsers.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links