Open Bug 1367757 Opened 3 years ago

Should String.prototype.substr be marked as deprecated?

Categories

(Developer Documentation :: JavaScript, enhancement, P5)

All
Other
enhancement

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: mozilla, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

The spec for String.prototype.substr states that "This annex describes various legacy features [...] These features are not considered part of the core ECMAScript language.":
https://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.substr

This would appear to indicated that MDN's substr page should have a 'Deprecated' tag and a '{{deprecated_header}}'.  I can make this change, but I want a second opinion first.
You need to log in before you can comment on or make changes to this bug.