Web Platform Atlas
ENRU⚡UA⚡DE⚡FR⚡ES⚡PL⚡PT⚡ZH⚡JA⚡
Catalog / DOM / Ordered sets

1.2 Ordered sets

Static preview (EN): for MDN, WPT, glossary and BYOK translation open the interactive Atlas.
⚡ Open chapter in Atlas

1.2. Ordered sets

The ordered set parser takes a string input and then runs these steps:

Let inputTokens be the result of splitting input on ASCII whitespace.

Let tokens be a new ordered set.

For each token of inputTokens: append token to tokens.

Return tokens.

The ordered set serializer takes a set and returns the concatenation of set using U+0020 SPACE.