Support » Plugin: Like » [Plugin: Like] Small W3C synax amendment needed

  • Hi
    I ran my site through W3C validation and had only a couple of errors (woohoo)

    One of them comes from the Like plugin and is a simple syntax error which I tried to manually fix myself, but I couldn’t find the actual code for it?

    The syntax W3C flags is because of a capital letter mid attribute in: “allowTransparency”
    Should be “allowtransparency”

    I looked in the page code and found the relating code in the like_widget.php on line 409, but I can’t see where it’s picking up the allowTransparency:

    Page src:

    <!-- Facebook Like Button v1.9.6 BEGIN [] -->
    <iframe src="http://MyURL&layout=button_count&show_faces=false&width=450&action=recommend&colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px; height: 30px; align: left; margin: 2px 0px 2px 0px"></iframe>
    <!-- Facebook Like Button END -->

    Line 409 of the code:
    $button .= '<iframe src="'.$url.'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'.$tt_like_settings['width'].'px; height: '.$tt_like_settings['height'].'px; align: '.$align.'; margin: '.$margin.'"></iframe>';

    Would be worth amending for future releases to keep the gods of HTML happy 😉


  • The topic ‘[Plugin: Like] Small W3C synax amendment needed’ is closed to new replies.