<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 2: HTML5 doctype breaks processing</title><link href="https://sourceforge.net/p/htmlp/support-requests/2/" rel="alternate"/><link href="https://sourceforge.net/p/htmlp/support-requests/2/feed.atom" rel="self"/><id>https://sourceforge.net/p/htmlp/support-requests/2/</id><updated>2018-06-14T11:13:03.601000Z</updated><subtitle>Recent changes to 2: HTML5 doctype breaks processing</subtitle><entry><title>HTML5 doctype breaks processing</title><link href="https://sourceforge.net/p/htmlp/support-requests/2/" rel="alternate"/><published>2018-06-14T11:13:03.601000Z</published><updated>2018-06-14T11:13:03.601000Z</updated><author><name>Maris Janis Vasilevskis</name><uri>https://sourceforge.net/u/mahris/</uri></author><id>https://sourceforge.net364859bd6be81a3886c235cb3b73d2b02cf5a7e6</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;The unit nicely precesses HTML4 doctype, like&lt;br/&gt;
&amp;lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"&amp;gt;&lt;br/&gt;
But simple HTML5 &amp;lt;!doctype html&amp;gt; breaks whole processing, because quote not found.&lt;br/&gt;
My quick fix in function THtmlReader.ReadDocumentType (unit HtmlReader):&lt;br/&gt;
  if (FHtmlStr&lt;span&gt;[FPosition]&lt;/span&gt;='"') or (FHtmlStr&lt;span&gt;[FPosition]&lt;/span&gt;='''')  then&lt;br/&gt;
    if not ReadQuotedValue(FPublicID) then&lt;br/&gt;
      Exit;&lt;/p&gt;
&lt;p&gt;Was - without the first line:&lt;br/&gt;
  if not ReadQuotedValue(FPublicID) then&lt;br/&gt;
    Exit;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>