Closed
Bug 1246770
Opened 9 years ago
Closed 9 years ago
string.prototype.includes doc is potentially incorrect
Categories
(Developer Documentation Graveyard :: JavaScript, defect, P5)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cjmaroney01, Unassigned)
References
()
Details
:: 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."
Comment 1•9 years ago
|
||
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
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•