7

What is the current support for the slice method?

Marcel Korpel
  • 21,536
  • 6
  • 60
  • 80
Alex Polo
  • 430
  • 1
  • 6
  • 7

1 Answers1

7

Currently Chrome 6+, FF 4+:

  • Firefox 3.6+ (partial file support, but not .slice() yet)
  • Firefox 4+ (full file support, though I'm unsure which beta this was added in)
  • Chrome 6+ (full file support)

Of course this list will become outdated, hopefully soon. There's a test available at html5rocks.com for others to test their browser as new releases happen as well.

Marcel Korpel
  • 21,536
  • 6
  • 60
  • 80
Nick Craver
  • 623,446
  • 136
  • 1,297
  • 1,155
  • Blob `slice` support will be added in Firefox 4 - https://developer.mozilla.org/en/DOM/Blob – Yi Jiang Nov 21 '10 at 09:33
  • @YiJiang - I see that it's *supposed* to be added, trying to do a side-by-side install of FF beta now to see if it actually has, if anyone already has it installed there's a test here: http://www.html5rocks.com/tutorials/file/dndfiles/ – Nick Craver Nov 21 '10 at 09:35
  • Yep, works in FF4.0b7: “Your browser appears to support all of the functionality used in this sample” and demo functioned correctly. – Marcel Korpel Nov 21 '10 at 09:37
  • @Nick That's actually the only reference to the `slice` function I could find searching, along with some reference to Chrome 5+ having support for the File API, but I suppose you have much better Google-fu than me – Yi Jiang Nov 21 '10 at 09:38
  • @YiJiang – I added a link to the spec in the question – Marcel Korpel Nov 21 '10 at 09:39
  • @Marcel, @YiJiang - thanks to both - I just confirmed the same here, answer updated! – Nick Craver Nov 21 '10 at 09:39