Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

// request.cf · coarse context

A page that knows where it met you.

Only coarse request metadata is shown. This demo does not display or persist visitor IP addresses.

Country
US
Cloudflare location
CMH
Connection
HTTP/2
Language
Not provided

Ray ID: a23377e70e0a3524

Jump to content

MediaWiki talk:LAPI.js

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia

Interface-protected edit request on 19 October 2022

[edit]

Could the // <source lang=javascript"> and // </source> lines be removed? These cause the page to be put in Category:Pages using deprecated source tags and Category:Pages with syntax highlighting errors. Aidan9382 (talk) 08:08, 19 October 2022 (UTC)Reply

 Done ~ Amory (utc) 11:47, 19 October 2022 (UTC)Reply

Interface-protected edit request on 19 November 2023

[edit]

See diff. (That's kind of unreadable, but wikEdDiff, or diff -uw helps.)

This library (which appears to be imported only by MediaWiki:Gadget-ImageAnnotator.js) includes various polyfills and extensions for Object, String, Array, and Function. Unfortunately, some of them are broken or subtly different from the standard versions, and can cause bugs in other scripts.

This patch fixes the polyfill for string.prototype.endsWith() so it doesn't return true when the suffix is one character longer than the target string. This had caused a baffling exception deep within vue.js.

To guard against similar problems from cropping up in the future, the patched version will also no longer attempt to replace any built-in method. Suffusion of Yellow (talk) 21:06, 19 November 2023 (UTC)Reply

 Done Izno (talk) 22:02, 19 November 2023 (UTC)Reply