Description
Expansion algorithm step 13.8.3.7.5:
Otherwise, if
container mapping
includes@type
initializetypes
to the concatenation ofexpanded index
with any existing values of@type
initem
. Ifexpanded index
is@none
, do not concatenateexpanded index
totypes
. Add the key-value pair (@type-types
) toitem
.
Based on test tm012, I don't think this key-value pair is meant to be added to item
in the case that expanded index
is @none
. If that is the case, this text can likely be simplified, as the "If expanded index
is @none
" condition will apply to the entire body of this step.
Also, the word choice of "concatenation" is confusing here. By context, I believe that what is being described is an array, types
, that should possibly contain expanded index
, and definitely contain any existing values of @type
in item
. Is there a way to improve this language to not risk confusion with string concatenation?