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.

Marked as reviewed by jjg (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/13990#pullrequestreview-1465570748

Reply via email to