what happens when Script sub tag is not supported?

Does the implementation strip the script code to leave the base language code, or use the fallback option?

by David Storey

JavaScript

console.clear();

// Doesn’t really exist
console.log("English with Cyrillic script:");
console.dirxml(new Intl.DateTimeFormat(["en-Cyrl", "en-GB"]).resolvedOptions());

// Used in Parts of Moldova
console.log("Romanian with Cyrillic script:");
console.dirxml(new Intl.DateTimeFormat(["ro-Cyrl", "en-GB"]).resolvedOptions());

// Both formally used in Belarus
console.log("Belarusian with Latin script:");
console.dirxml(new Intl.DateTimeFormat(["be-Latn", "en-GB"]).resolvedOptions());

console.log("Belarusian with Arabic script:");
console.dirxml(new Intl.DateTimeFormat(["be-Arab", "en-GB"]).resolvedOptions());