From: Bagas Sanjaya Date: Thu, 02 Jun 2022 07:26:43 GMT Subject: Re: [PATCH] gitweb: switch to a modern DOCTYPE Message-ID: <530f7bb4-9f12-f681-0188-878054c4efbf@gmail.com> In-Reply-To: <20220601012647.1439480-1-jason@jasonyundt.email> On 6/1/22 08:26, Jason Yundt wrote: > According to the HTML Standard FAQ: > > “What is the DOCTYPE for modern HTML documents? > > In text/html documents: > > > > In documents delivered with an XML media type: no DOCTYPE is required > and its use is generally unnecessary. However, you may use one if you > want (see the following question). Note that the above is well-formed > XML.” > > Source: [1] > > Gitweb uses an XHTML 1.0 DOCTYPE: > > "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > While that DOCTYPE is still valid [2], it has several disadvantages: > > 1. It’s misleading. The DTD that browsers are supposed to use with that > DOCTYPE has nothing to do with XHTML 1.0 and isn’t available at the URL > that is given [2]. > 2. It’s obsolete. XHTML 1.0 was last revised in 2002 and was superseded in > 2018 [3]. > 3. It’s unreliable. Gitweb uses   and ⋅ but lets an external file > define them. “[…U]using entity references for characters in XML documents > is unsafe if they are defined in an external file (except for <, >, > &, ", and ').” [4] > > [1]: > [2]: > [3]: > [4]: > > Signed-off-by: Jason Yundt So basically what this patch does is switch to HTML5, right? That is because I can see DOCTYPE "upgrade" to use "", which is the DOCTYPE for HTML5. If it does, then mention HTML5 in v2. -- An old man doll... just what I always wanted! - Clara