On Mon, 15 May 2023 14:43:15 GMT, Hannes Wallnöfer <hann...@openjdk.org> wrote:

> Please review a change to downgrade from error to warning if the label of a 
> `<a>` element or reference tag contains an HTML block element. Before HTML 5, 
> elements were clearly divided into block and inline elements, and the latter 
> were not allowed to contain the former. 
> 
> With HTML5, the division between block and inline elements is delegated to 
> CSS, and although elements have default styles, styles can be freely 
> customized by the author. This applies especially true for the `<a>` element 
> which is commonly used both with inline and block layout. That was the 
> rationale for downgrading from error to warning for the `<a>` element only. 
> See the JBS issue comments for details and references.
> 
> The error message for the warning was enhanced to refer to the default style 
> for the `<a>` element.

This pull request has now been integrated.

Changeset: 0a4f9ad6
Author:    Hannes Wallnöfer <hann...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/0a4f9ad637df2f602e47940d039bb12e316fb62a
Stats:     31 lines in 4 files changed: 13 ins; 0 del; 18 mod

8292157: Incorrect error: "block element not allowed within inline element <a>"

Reviewed-by: jjg

-------------

PR: https://git.openjdk.org/jdk/pull/13990

Reply via email to