doc.setPreservesUnknownTags(true);
reader.handleStartTag(Tag.HTML, attr, 0);
reader.handleStartTag(Tag.BODY, attr, 0);
reader.handleStartTag(Tag.P, attr, 0);
assertEquals(3, reader.parseBuffer.size());
reader.handleSimpleTag(new Tag("fake"), attr, 0);
assertEquals(4, reader.parseBuffer.size());
init();
doc.setPreservesUnknownTags(false);
reader.handleStartTag(Tag.HTML, attr, 0);
reader.handleStartTag(Tag.BODY, attr, 0);
reader.handleStartTag(Tag.P, attr, 0);
assertEquals(3, reader.parseBuffer.size());
reader.handleSimpleTag(new Tag("fake"), attr, 0);
assertEquals(3, reader.parseBuffer.size());
}