This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
971af39
commit 1d00efe
Showing
15 changed files
with
97 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
Experimental | ||
============ | ||
|
||
### Binary Data | ||
|
||
[script](bindata.js) - | ||
[demo page](http://inexorabletash.github.io/polyfill/experimental/demos/bindata.html) | ||
|
||
Proposed for ES7 - http://wiki.ecmascript.org/doku.php?id=harmony:binary_data |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
Obsolete | ||
======== | ||
|
||
These are basically unmaintained dead ends. Use at your own risk. | ||
|
||
W3C Web Storage | ||
--------------- | ||
[script](storage.js) - | ||
[spec](http://dev.w3.org/html5/webstorage/) - | ||
adapted from [Remy Sharp](https://gist.github.com/350433) | ||
|
||
```javascript | ||
storage = window.localStorage | ||
storage = window.sessionStorage | ||
storage.clear() | ||
valueString = storage.getItem(keyString) | ||
valueString = storage.key(index) | ||
storage.removeItem(keyString) | ||
storage.setItem(keyString, valueString) | ||
storage.length | ||
```` | ||
|
||
W3C Workers | ||
----------- | ||
[script](workers.js) - | ||
[spec](http://dev.w3.org/html5/workers/) - | ||
just for kicks; you probably don't want to use this | ||
Console | ||
------- | ||
[script](console.js) - | ||
[unit tests](http://inexorabletash.github.io/polyfill/tests/console.html) - | ||
*de facto* standard in modern browsers based on [FireBug Console API](http://getfirebug.com/wiki/index.php/Console_API) | ||
```javascript | ||
console.log(messageObject, arguments...); // and variations: debug, info, warn, error | ||
console.assert(assertion, messageObject, arguments...); | ||
console.count(name); | ||
console.time(name); console.timeEnd(name); | ||
console.group(name); console.groupEnd(); | ||
console.trace(); | ||
console.clear(); | ||
``` | ||
Cookie API | ||
---------- | ||
[script](cookie.js) - | ||
Adam Barth's [Cookie API proposal](https://docs.google.com/Doc?docid=0AZpchfQ5mBrEZGQ0cDh3YzRfMTRmdHFma21kMg&hl=en&pli=1) - | ||
abandoned | ||
|
||
```javascript | ||
var cookie = document.getCookie(name, callback); | ||
alert(cookie.name); | ||
alert(cookie.value); | ||
var cookieArray = document.getAllCookies(callback); | ||
document.setCookie(cookie, errorCallback); | ||
document.deleteCookie(name, errorCallback); | ||
``` | ||
|
||
DOMException (helper) | ||
--------------------- | ||
[script](https://github.com/inexorabletash/polyfill/edit/master/domexception.js) - | ||
[demo page](http://inexorabletash.github.io/polyfill/demos/domexception.html) - | ||
|
||
Creates a native DOMException of the specified type if possible, | ||
otherwise a similar looking object. Useful when implementing other polyfills. | ||
|
||
```javascript | ||
exception = DOMException.create(code) | ||
``` | ||
|
||
sprintf (other) | ||
--------------- | ||
[script](sprintf.js) - | ||
[unit tests](http://inexorabletash.github.io/polyfill/tests/sprintf.html) - | ||
used for a few C-to-JavaScript porting projects | ||
|
||
```javascript | ||
var str = sprintf("Foo %s bar %d", "hello", 123); | ||
``` |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.