From 3324f22808974f1cde9c0df234b1f7299c8112c6 Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 30 Sep 2015 12:57:41 +0200 Subject: [PATCH] Clean up definitions borrowed from Encoding --- source | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/source b/source index 19dc88c79e2..7d20249ccb4 100644 --- a/source +++ b/source @@ -2252,11 +2252,14 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

Character encodings

-

A character encoding, or just encoding where that is not - ambiguous, is a defined way to convert between byte streams and Unicode strings, as defined in the - WHATWG Encoding standard. An encoding has an encoding name and one or more - encoding labels, referred to as the encoding's name and - labels in the Encoding standard.

+

A character encoding, or just + encoding where that is not ambiguous, is a defined way to convert between byte streams and + Unicode strings, as defined in the WHATWG Encoding standard. An encoding has an + encoding name and + one or more encoding labels, referred to as the + encoding's name and labels in the Encoding standard.

A UTF-16 encoding is UTF-16BE or UTF-16LE.

@@ -2266,7 +2269,7 @@ a.setAttribute('href', 'http://example.com/'); // change the content attribute d

Since support for encodings that are not defined in the WHATWG Encoding standard is prohibited, UTF-16 encodings are the only encodings that this specification needs to treat as not being ASCII-compatible encodings. + data-x="ASCII-compatible encoding">ASCII-compatible encodings.

The term code unit is used as defined in the Web IDL specification: a 16 bit unsigned integer, the smallest atomic component of a