• Skip to main content
  • Skip to search
  • Skip to select language
MDN Logo
    • Technologies Overview
    • HTML
    • CSS
    • JavaScript
    • Graphics
    • HTTP
    • APIs
    • Browser Extensions
    • MathML
    • Learn web development
    • Tutorials
    • References
    • Developer Guides
    • Accessibility
    • Game development
    • ...more docs
    • Send Feedback
    • Contribute to MDN
    • Report a content issue 🌐
    • Report a platform issue 🌐
  1. Web technology for developers
  2. Web APIs
  3. TextDecoderStream
  4. TextDecoderStream.ignoreBOM

Table of contents

  • Value
  • Examples
  • Specifications
  • Browser compatibility

TextDecoderStream.ignoreBOM

The ignoreBOM read-only property of the TextDecoderStream interface returns a boolean indicating if the byte order mark (BOM) is to be ignored.

Value

A boolean, initially false

Examples

stream = new TextDecoderStream();
console.log(stream.ignoreBOM); // returns false

Specifications

Specification
Encoding
# textdecoder-ignore-bom-flag

Browser compatibility

Found a problem with this page?

  • Edit on GitHub
  • Source on GitHub
  • Report a problem with this content on GitHub
  • Want to fix the problem yourself? See our Contribution guide.

Last modified: Mar 26, 2022, by MDN contributors

Related Topics

  1. Encoding API
  2. TextDecoderStream
  3. Constructor
    1. TextDecoderStream()
  4. Properties
    1. encoding
    2. fatal
    3. ignoreBOM
    4. readable
    5. writable
  5. Related pages for Encoding API
    1. TextDecoder
    2. TextEncoder
    3. TextEncoderStream
MDN Logo
  • Web Technologies
  • Learn Web Development
  • About MDN
  • Feedback
  • About
  • MDN Web Docs Store
  • Contact Us
  • Firefox

MDN

  • MDN on Twitter
  • MDN on Github

Mozilla

  • Mozilla on Twitter
  • Mozilla on Instagram

© 2005-2025 Mozilla and individual contributors. Content is available under these licenses.

  • Terms
  • Privacy
  • Cookies