Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2022年9月.
fatal は TextDecoderStream インターフェイスの読み取り専用プロパティで、TextDecoderStream オブジェクトのエラーモードが fatal に設定されているかどうかを論理値で示します。
このプロパティが true であった場合、デコーダーがデコード中に正しくない形のデータに遭遇した場合、TypeError が発生します。 false であった場合、デコーダーは無効なデータを置換文字 U+FFFD (�) で置き換えます。 このプロパティの値は TextDecoderStream() コンストラクターで設定されます。
論理値で、エラーモードが "fatal" に設定されている場合は true となります。 そうでない場合は false となり、エラーモードが "replacement" であることを示します。
| Encoding # dom-textdecoder-fatal |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年5月10日 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.