1
colossus
HTML validation errors in Youtube tags
  • 2009/7/12 23:37

  • colossus

  • Just popping in

  • Posts: 43

  • Since: 2007/9/30


Hi:

In XOOPS 2.3.3 (and previous versions I guess), a post or comment that has some Youtube video embed with Xoopscode "Youtube" won't pass HTML Validation.

I think this can be fixed modifying line 75 in the archive class/textsanitize/youtbe/youtube.php:

$code "<object width='{$width}' height='{$height}'><param name='movie' value='{$src}'></param>" .
                 
"<param name='wmode' value='transparent'></param>" .
                 
"<embed src='{$src}' type='application/x-shockwave-flash' wmode='transparent' width='425' height='350'></embed>" .                 "</object>";


Changing it to, for example, this:

$code "<object width='{$width}' height='{$height}' data='{$src}' type='application/x-shockwave-flash'>" .
                
"<param name='movie' value='{$src}'></param>" .
                
"<param name='wmode' value='transparent'></param>" .
                
"</object>";


Regards: Colossus

Login

Who's Online

93 user(s) are online (63 user(s) are browsing Support Forums)


Members: 0


Guests: 93


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits