TextDecoderStream: ignoreBOM property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since September 2022.
Note: This feature is available in Web Workers.
Thuộc tính chỉ đọc ignoreBOM của giao diện TextDecoderStream là giá trị Boolean cho biết byte order mark có được đưa vào đầu ra hay bị bỏ qua hay không.
Giá trị
true nếu byte order mark sẽ được đưa vào văn bản đã giải mã; false nếu nó sẽ bị bỏ qua khi giải mã và bị loại bỏ.
Ví dụ
js
stream = new TextDecoderStream();
console.log(stream.ignoreBOM); // returns false
Thông số kỹ thuật
| Specification |
|---|
| Encoding> # textdecoder-ignore-bom-flag> |