<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 2: HTML5 doctype breaks processing</title><link>https://sourceforge.net/p/htmlp/support-requests/2/</link><description>Recent changes to 2: HTML5 doctype breaks processing</description><atom:link href="https://sourceforge.net/p/htmlp/support-requests/2/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 14 Jun 2018 11:13:03 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/htmlp/support-requests/2/feed.rss" rel="self" type="application/rss+xml"/><item><title>HTML5 doctype breaks processing</title><link>https://sourceforge.net/p/htmlp/support-requests/2/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Maris Janis Vasilevskis</dc:creator><pubDate>Thu, 14 Jun 2018 11:13:03 -0000</pubDate><guid>https://sourceforge.net364859bd6be81a3886c235cb3b73d2b02cf5a7e6</guid></item></channel></rss>