#1654 new
Jason Westbrook

Native startsWith/endsWith in Firefox

Reported by Jason Westbrook | January 15th, 2013 @ 02:07 AM

According to https://developer.mozilla.org/en-US/docs/JavaScript/Reference/Globa...

String will get startsWith() and endsWith() methods supported natively in Firefox.

Need to check for this and handle correctly as Firefox adds a position parameter as well.

Comments and changes to this ticket

  • Victor

    Victor January 17th, 2013 @ 07:11 AM

    By the way, they have wrong example:

    var str = "To be, or not to be, that is the question.";
    alert( str.endsWith("question") );  // true
    

    Also there is no version information (which Firefox versions support these methods).

  • Jason Westbrook
  • angelina521
  • angelina521
  • Victor

    Victor January 24th, 2013 @ 08:05 PM

    I've found startsWith/endsWith in Firefox 18.0.1

  • Victor
  • tomramjay

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages