13.2 Parsing HTML documents13.2.1 Overview of the parsing model13.2.2 Parse errors13.2.3 The input byte stream13.2.3.1 Parsing with a known character encoding13.2.3.2 Determining the character encoding13.2.3.3 Character encodings13.2.3.4 Changing the encoding while parsing13.2.3.5 Preprocessing the input stream13.2.4 Parse state13.2.4.1 The insertion mode13.2.4.2 The stack of open elements13.2.4.3