[pgsql-www] Fix nested paragraphs on event list

Поиск
Список
Период
Сортировка
Искать

[pgsql-www] Fix nested paragraphs on event list

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
Вложения:
The event list on /about/events/ fails validation due to nesting a block-level
element (in this case a 

) inside a

paragraph. The

element is a block-level element which prohibits any other nested block-level elements such as

but also

itself. The culprit is the markdown filter which renders using

elements. Attached patch replace the

element wrapping the rendered event summary with a

instead. Since browsers close the currently open

when encountering a block-level element, this should not introduce any visible changes but since I don’t have a staging environment it needs testing. cheers ./daniel -- Sent via pgsql-www mailing list (pgsql-www@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-www

Re: [pgsql-www] Fix nested paragraphs on event list

От:
Magnus Hagander <magnus@hagander.net>
Дата:

On Mon, Jan 30, 2017 at 8:29 AM, Daniel Gustafsson <daniel@yesql.se> wrote:
The event list on /about/events/ fails validation due to nesting a block-level
element (in this case a <p>) inside a <p> paragraph.  The <p> element is a
block-level element which prohibits any other nested block-level elements such
as <div> but also <p> itself.  The culprit is the markdown filter which renders
using <p> elements.

Attached patch replace the <p> element wrapping the rendered event summary with
a <div> instead.  Since browsers close the currently open <p> when encountering
a block-level element, this should not introduce any visible changes but since
I don’t have a staging environment it needs testing.

Pushed, thanks. 

--
FAQ