Get to know MDN better
The JavaScript exception "form must be one of 'NFC', 'NFD', 'NFKC', or 'NFKD'" occurs when an unrecognized string is passed to the String.prototype.normalize() method.
The String.prototype.normalize() method only accepts the following four values as its form argument: "NFC", "NFD", "NFKC", or "NFKD". If you pass any other value, an error will be thrown. Read the reference of normalize() to learn about different normalization forms.
This page was last modified on Jul 8, 2025 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.