Back to Content

TextDecoder: ignoreBOM property

files/en-us/web/api/textdecoder/ignorebom/index.md

latest742 B
Original Source

{{APIRef("Encoding API")}}{{AvailableInWorkers}}

The ignoreBOM read-only property of the {{domxref("TextDecoder")}} interface is a {{jsxref('Boolean')}} indicating whether the byte order mark will be included in the output or skipped over. The value of the property is set in the ignoreBOM argument to the decoder's constructor.

Value

true if the byte order mark will be included in the decoded text; false if it will be skipped over when decoding and omitted.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}