archives

« Bugzilla Issues Index

#2702 — chapter 21: misc editorial


----------------------------------------
In 21.1.1 "The String Constructor":

{1}
21.1.1 / para 1:
... perform type conversion and to perform constructor instance initialisation.
s|isation|ization|

----------------------------------------
In 21.1.3.12 "String.prototype.normalize ( [ form ] )":

{2}
21.1.3.12 / step 8:
... as specified in _Unicode Standard Annex #15, UnicodeNormalizatoin Forms_.
Insert space after "Unicode"
s|zatoin|zation|

----------------------------------------
In 21.1.3.14.1 "Runtime Semantics: GetReplaceSubstitution Abstract Operation":

{3}
21.1.3.14.1 / table / 2nd-last row / col 3:
The nnth elemet of captures, where nn is a two-digit decimal number ...
s|elemet|element|

----------------------------------------
In 21.1.3.22 "String.prototype.toLowerCase ( )":

{4}
21.1.3.22 / step 4:
Let /cpList/ be a List containing in order the code points as defned in 6.1.4
s|defned|defined|

----------------------------------------
In 21.2.2.2 "Pattern":

{5}
21.2.2.2 / step 2.1:
... let /Input/ be a List of consisting of the sequence of code points ...
s|of consisting of|of|

----------------------------------------
In 21.2.2.8.2 "Runtime Semantics: Canonicalize Abstract Operation":

{6}
21.2.2.8.2 / step 2.a:
If the file CaseFolding.txt of the Unicode Character Database does not provides a simple or common case folding mapping for /ch/, return /ch/.
s|provides|provide|

{7}
21.2.2.8.2 / step 2.b:
Return the result of apply that mapping to /ch/.
s|apply|applying|

The antecedent for "that mapping" is odd.
It would be clearer if you swapped the two 'arms' of the 'if'.

{8}
21.2.2.8.2 / step 3:
Else,.
Delete final dot

{9}
21.2.2.8.2 / step 3.b:
Let /s/ be the ECMAScript String value consistings of the single code unit /ch/.
s|consistings|consisting|

{10}
21.2.2.8.2 / step 3.c:
... produced as if by applying the algorithm for Stirng.prototype.toUpperCase
s|Stirng|String|

{11}
21.2.2.8.2 / step 3.e:
Assert: /u/ is a String value.
Remove underline.

----------------------------------------
In 21.2.2.10 "CharacterEscape":

{12}
21.2.2.10 / group 8 / step 1:
Return the character whose code is the MV of /Hex4Digits/.
s|Hex4Digits|HexDigits|

{13}
21.2.2.10 / group 9 / para:
The production /LeadSurrogate : Hex4Digits/ evaluates by evaluating as follows:
Delete "by evaluating"

----------------------------------------
In 21.2.2.15 "NonemptyClassRanges":

{14}
21.2.2.15 / para 3:
The production
NonemptyClassRanges : ClassAtom - ClassAtom ClassRanges
evaluates as follows:
"ClassRanges" is in upright sans, should be in italic serif

----------------------------------------
In 21.2.2.18 "ClassAtomNoDash":

{15}
21.2.2.18 / alg 1 / step 1:
Return the CharSet containing the character that is /SourceCharacter/.
s|that is|represented by|, for consistency.

----------------------------------------
In 21.2.3 "The RegExp Constructor":

{16}
21.2.3 / para 1:
... both as factory method and to perform constructor instance initialisation.
s|isation|ization|

----------------------------------------
In 21.2.3.3.2 "Runtime Semantics: RegExpInitialize Abstract Operation":

{17}
21.2.3.3.2 / step 8:
If /F/ contains"u" then let /BMP/ be *false*, else let /BMP/ be *true*.
After "contains", insert a space.

{18}
21.2.3.3.2 / step 13:
... as the pattern's List of /SourceCharacter/ values.and /F/ as ...
In "values.and", change dot to space.

----------------------------------------
In 21.2.5.2.1 "Runtime Semantics: RegExpExec Abstract Operation":

{19}
21.2.5.2.1 / step 17.a:
... Let /eUTF/ be the smallest index into /S/ that corresponds to the character
at element /e/ of /Input/. If /e/ isgreater than the length of /Input/, then
/eUTF/ is 1 + the number of code units in /S/.
Remove underline.

{20}
21.2.5.2.1 / step 17.b:
Let /e/ be /eUTF/..
Remove underline.

{21}
21.2.5.2.1 / step 28.c.ii:
Let /captureString/ be a string whose elements are the code units of /capture/.
s|capture|captureI|

----------------------------------------
In 21.2.5.7 "RegExp.prototype.replace ( string, replaceValue )":

{22}
21.2.5.7 / step 11:
Let /accumulatedResult/ be the empty Sring value.
s|Sring|String|

{23}
21.2.5.7 / step 13:
If /global/ is *true*,then
After comma, insert space.

{24}
21.2.5.7 / step 16.d.i:
If /global/ is *true*,then
After comma, insert space.

{25}
21.2.5.7 / step 16.d.x.3:
Append /position/ and /string/ as the last two element of /replacerArgs/.
s|element|elements|

{26}
21.2.5.7 / step 16.d.xv:
... and with the code units of /sub/.[[ replacement]].
Delete space after '[['

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


fixed in rev25 editor's draft


confirmed fixed.