Lucas_Werkmeister_WMDE created this task. Lucas_Werkmeister_WMDE added projects: Wikidata, Browser-Support-Internet-Explorer, Wikidata Lexicographical data.
TASK DESCRIPTION Special:NewLexeme includes a fallback interface that is used when JavaScript isn’t supported: F55310800: Screen Shot 2024-06-14 at 12.12.48.png <https://phabricator.wikimedia.org/F55310800> However, @Michael noticed that this interface isn’t available in “Grade C” browsers when JavaScript is supported, as I can confirm in a VM with IE11: F55310815: NewLexeme-on-IE11.png <https://phabricator.wikimedia.org/F55310815> This is because the fallback interface is wrapped in a `<noscript>` tag, with a small JavaScript file (`resources/special/NewLexemeFallback.js`) loaded via ResourceLoader (`wikibase.lexeme.special.NewLexeme.legacyBrowserFallback`) that replaces the `<noscript>` tag with its contents. But if MediaWiki detects that the browser has insufficient JavaScript support (not “Grade A”), then ResourceLoader modules aren’t loaded at all, and the `<noscript>` tag stays a `<noscript>` tag; yet the browser thinks it supports JavaScript, and doesn’t show the `<noscript>` contents either. Ultimately, this is the result of the significantly changed MediaWiki browser support landscape since we developed the new Special:NewLexeme page. Back then, we were targeting only the subset of “Grade A” browsers that supported ES6 with the main user interface, and the fallback interface was then intended for the remaining non-ES6 “Grade A” browsers; “Grade C” browsers would have had the same problem back then, I believe, but it would have affected a different set of users because IE11 was still “Grade A”. Now, however, MediaWiki requires “Grade A” browsers to support ES6, so the distinction that `NewLexemeFallback.js` was originally addressed at no longer exists. If we want to repurpose the fallback interface to target “Grade C” browsers, that should be possible, but we’ll have to do it slightly differently by using the `NORLQ` (“no ResourceLoader queue”) mechanism. (`NORLQ` is meticulously undocumented, but there are a handful of uses <https://codesearch.wmcloud.org/search/?q=NORLQ> in codesearch, so it doesn’t seem to be limited to MediaWiki core – it’s just quite rare.) On the other hand, we could also decide that “Grade C” browsers remain unsupported on Special:NewLexeme. TASK DETAIL https://phabricator.wikimedia.org/T367497 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Lucas_Werkmeister_WMDE Cc: Lucas_Werkmeister_WMDE, Michael, Danny_Benjafield_WMDE, S8321414, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, Akuckartz, Dringsim, Nandana, Lahi, Gq86, GoranSMilovanovic, Mahir256, QZanden, KimKelting, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org