publicSuffix.DomainEncoding
The encoding format for domain names returned by publicSuffix.getDomain().
The encoding format for domain names returned by publicSuffix.getDomain().
## Type
Values of this type are strings. Possible values are:
- `"punycode"`
- : Returns the domain in [Punycode](https://en.wikipedia.org/wiki/Punycode) (ASCII-compatible encoding, ACE). This value is the default.
- `"display"`
- : Returns the domain in Unicode form, suitable for display to users. If the Unicode representation contains characters that could be confused with characters from another script (confusable characters), the domain is returned in Punycode instead to prevent [homograph attacks](https://en.wikipedia.org/wiki/IDN_homograph_attack).
## Browser compatibility
Cite this
"publicSuffix.DomainEncoding". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/publicSuffix/DomainEncoding JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy