string.prototype.includes doc is potentially incorrect

RESOLVED FIXED

Status

P5
normal
RESOLVED FIXED
3 years ago
3 years ago

People

(Reporter: cjmaroney01, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

3 years ago
:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

the page says 

"With the introduction of this function in Firefox 17, the behavior of that check changed in a way that causes code based on MooTools' String.prototype.contains() implementation to break. As a result, this change was disabled in Firefox 17 and String.prototype.contains() was available one version later, in Firefox 18."

However, it is discussing that String.prototype.contains() was removed, and replaced with includes().   I Believe it should say "...String.prototype.includes() was available one version later, in Firefox 18."
Thanks for your report! However, String.prototype.contains was indeed meant here. I have clarified the sentence:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes#String.prototype.contains

See https://bugzilla.mozilla.org/show_bug.cgi?id=789036#c32
Status: UNCONFIRMED → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.