fune/servo/components/script/dom/webidls/TextEncoder.webidl
Ashwin R 97c0d731da servo: Merge #13405 - Removed support for UTF-16 in TextEncoder (from ashrko619:textencoder-encoding); r=Ms2ger
<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13231  (github issue number if applicable).

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

Source-Repo: https://github.com/servo/servo
Source-Revision: d03f0a20cc0f98ee55fbca65d71ff59026bee323
2016-09-26 22:19:40 -05:00

11 lines
444 B
Text

/* 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/. */
/* https://encoding.spec.whatwg.org/#interface-textencoder */
[Constructor, Exposed=(Window,Worker)]
interface TextEncoder {
readonly attribute DOMString encoding;
[NewObject]
Uint8Array encode(optional USVString input = "");
};