News:

Wondering if this will always be free?  See why free is better.

Main Menu

Trying to get XHTML 1.1 Validation to go

Started by Innocent, March 20, 2006, 11:19:40 PM

Previous topic - Next topic

Innocent

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:


     
  • 1. Error Line 53, column 124: there is no attribute "align" .
...emes/oeSmf/images/post/xx.gif" align="middle" alt="xx" /> <span style="font-w...

  •    2. Error Line 116, column 396: there is no attribute "border" .

    ...ault/tongue.gif" alt="Tongue" border="0" /> <img src="http://ctl2.crespire.ne...




Tim

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;}

Innocent

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

Advertisement: