From ee095068036d0ab4a2d663a090d7589045e02b19 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 10 Oct 2023 16:44:52 -0700 Subject: [PATCH] [spec] properly hex-encode digits Fixes #62 --- spec.emu | 1 + 1 file changed, 1 insertion(+) diff --git a/spec.emu b/spec.emu index dfc084b..100535b 100644 --- a/spec.emu +++ b/spec.emu @@ -38,6 +38,7 @@ contributors: Jordan Harband 1. If _escapedList_ is empty and _c_ is a |DecimalDigit|, then 1. Append code unit U+005C (REVERSE SOLIDUS) to _escapedList_. 1. Append code unit U+0078 (LATIN SMALL LETTER X) to _escapedList_. + 1. Append code unit U+0033 (DIGIT THREE) to _escapedList_. 1. Else if _c_ is a CharSetElement of _toEscape_ or is |WhiteSpace|, then 1. Append code unit U+005C (REVERSE SOLIDUS) to _escapedList_. 1. Append the elements of UTF16EncodeCodePoint(_c_) to _escapedList_.