Simple Machines Community Forum

General Community => Scripting Help => Topic started by: Innocent on March 20, 2006, 11:19:40 PM

Title: Trying to get XHTML 1.1 Validation to go
Post by: Innocent on March 20, 2006, 11:19:40 PM
I'm down to my custom ssi_BoardNews(); (affectionalty named ssi_BoardNews2(); only change is the news "template" )

Anyways, it's spitting out some invalid stuff. I went through the sources and removed all instances of


border="0"
align="x"
target="x"


But my posts using my BoardNews function still include some stuff...  ie, the post icon ( ie like the little news page ) still has attribute 'align="middle"' and I would like to get rid of it. Is there any way to remove it?


[edit]

In particular, I'm having trouble removing these:

...emes/oeSmf/images/post/xx.gif" align="middle" alt="xx" /> <span style="font-w...

Title: Re: Trying to get XHTML 1.1 Validation to go
Post by: Tim on March 23, 2006, 06:48:20 AM
You can't use target, border or align

For the first one you could use the DOM, and border and align can be solved with CSS

for example:
img{ border: 0;}
Title: Re: Trying to get XHTML 1.1 Validation to go
Post by: Innocent on March 27, 2006, 08:44:36 PM
Quote from: Tim on March 23, 2006, 06:48:20 AM
You can't use target, border or align

For the first one you could use the DOM, and border and align can be solved with CSS

for example:
img{ border: 0;}


I know, I'm trying to eliminate it from the source generated by SMF so it can be replaced by CSS ;P