! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
<p> and </p> around <ul> and <li> is not valid
Status:
RESOLVED: FIXED
Severity:
enhancement
Product:
www.xfce.org
Component:
General

Comments

Description scootergrisen 2016-12-10 22:53:54 CET
Created attachment 6919 
Diff for fixing problem with invalid HTML code

On https://xfce.org/about/news/?post=1425081600 we got some <p> and </p> that are not suppose to be there. See https://validator.w3.org/check?uri=https%3A%2F%2Fxfce.org%2Fabout%2Fnews%2F%3Fpost%3D1425081600&charset=%28detect+automatically%29&doctype=Inline&group=0

There is a check for <ul> here but thats properly not a good idea to just add a long list of elements that should not have <p> and </p> around them:

      foreach ($item['paragraphs'] as $p)
      {
        if (strpos ($p, '<ul>') === false)
          echo '<p>'.$p.'</p>'."\n";
        else
          echo $p."\n";
      }

In /pages/news-array.php we have the $news array.

I suggest containg the content in an array to avoid the <p> and </p> but maybe someone have a better idea.
Comment 1 scootergrisen 2016-12-10 23:02:11 CET
Created attachment 6920 
I fixed the indentation to use tabs in this on

Bug #13221

Reported by:
scootergrisen
Reported on: 2016-12-10
Last modified on: 2017-05-21

People

Assignee:
Skunnyk
CC List:
2 users

Version

Version:
unspecified

Attachments

Additional information