2012-12-25 14:00:15 -08:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-09-28 03:19:18 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
2012-10-24 19:03:21 -07:00
|
|
|
* http://encoding.spec.whatwg.org/#interface-textencoder
|
2012-09-28 03:19:18 -07:00
|
|
|
*
|
2012-10-24 19:03:21 -07:00
|
|
|
* Any copyright is dedicated to the Public Domain.
|
|
|
|
* http://creativecommons.org/publicdomain/zero/1.0/
|
2012-09-28 03:19:18 -07:00
|
|
|
*/
|
|
|
|
|
2014-08-04 19:20:34 -07:00
|
|
|
[Constructor(optional DOMString utfLabel = "utf-8"),
|
2014-11-06 07:54:38 -08:00
|
|
|
Exposed=(Window,Worker,System)]
|
2012-09-28 03:19:18 -07:00
|
|
|
interface TextEncoder {
|
2012-12-25 14:00:15 -08:00
|
|
|
[Constant]
|
2012-09-28 03:19:18 -07:00
|
|
|
readonly attribute DOMString encoding;
|
2015-01-12 08:52:25 -08:00
|
|
|
[NewObject]
|
2014-11-21 12:46:19 -08:00
|
|
|
Uint8Array encode(optional USVString input = "");
|
2012-09-28 03:19:18 -07:00
|
|
|
};
|