SimplePortal

Development => Bugs => Fixed or Bogus Bugs => Topic started by: MultiformeIngegno on April 04, 2010, 06:45:06 PM

Title: W3C, XHTML Valid
Post by: MultiformeIngegno on April 04, 2010, 06:45:06 PM
Hello! :)
I've noticed that if I add "font-size: 95%" to the news block, I "break" my validation... it says:
attributes construct error
error parsing attribute name
Couldn't find end of Start Tag div


It happens only if I select "No body". With the body enabled it's valid!
Title: Re: W3C, XHTML Valid
Post by: AngelinaBelle on April 05, 2010, 12:22:10 PM
I tried this at http://demo.simpleportal.net/index.php (http://demo.simpleportal.net/index.php), but I cannot reproduce the problem.
 
I bet there are a lot of differences between Rockciclopedia and the demo site, though...
Title: Re: W3C, XHTML Valid
Post by: [SiNaN] on April 06, 2010, 04:07:28 AM
This is a bug that affects SP 2.3.2 on SMF 2.0 RC3. Here's the fix:

Portal.template.php

Code: (Find) [Select]
<div', empty($block['style']['body']['class']) ? '' : ' class="' . $block['style']['body']['class'] . '">';
Code: (Replace) [Select]
<div', empty($block['style']['body']['class']) ? '' : ' class="' . $block['style']['body']['class'] . '"', '>';
Title: Re: W3C, XHTML Valid
Post by: MultiformeIngegno on April 06, 2010, 04:58:59 AM
Thanks, solved! :)
Title: Re: W3C, XHTML Valid
Post by: Nathaniel on April 19, 2010, 08:59:55 AM
Reported to the Project Tracker:
http://simpleportal.net/index.php?issue=368.0
Title: Re: W3C, XHTML Valid
Post by: [SiNaN] on April 19, 2010, 10:45:19 AM
Nath, it doesn't look like a topic. :P
Title: Re: W3C, XHTML Valid
Post by: Nathaniel on April 19, 2010, 05:28:41 PM
Lol, serves me right for posting when I'm tired. Should have gone to sleep earlier last night! ;)

Fixed, thanks for the heads up sinan. :)
SimplePortal 2.3.8 © 2008-2024, SimplePortal