[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lynx-dev] patch to allow <div> in <a>

From: KIHARA Hideto
Subject: [Lynx-dev] patch to allow <div> in <a>
Date: Tue, 3 Dec 2019 20:56:49 +0900
User-agent: Mutt/1.9.4 (2018-02-28)

On Fri, 15 Nov 2019 11:55:34 +0000, Ian Collier wrote:
> In HTML prior to 5, <A> elements were not allowed to contain block
> elements such as <DIV>, and Lynx was written to this standard.
> However, in HTML 5, the content model of the <A> tag is "transparent"
> which means it is allowed to contain whatever the parent element may
> contain.

Attached ad hoc patch allows <a> to contain <div> and <dl> (like <p>).
(<dl> in <a> is used in )

<a href="#"><div>div</div></a>
<a href="#"><dl><dt>dt</dt><dd>dd</dd></dl></a>
<a href="#"><p>p</p></a>

KIHARA, Hideto / address@hidden

Attachment: div-in-a.patch
Description: Text Data

reply via email to

[Prev in Thread] Current Thread [Next in Thread]