Facebook connect W3C Validation

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MiskaTorn
    New Member
    • Mar 2005
    • 7
    • 3.0.7

    [Forum] Facebook connect W3C Validation

    Facebook connect according to W3C.org is not valid.

    Line 174, Column 24: there is no attribute "size"
    <fb:login-button size="medium" onlogin="vBfb.handle_fbLogin()"></fb:login-butt…
    Line 174, Column 41: there is no attribute "onlogin"
    …fb:login-button size="medium" onlogin="vBfb.handle_fbLogin()"></fb:login-butto…
    Line 174, Column 64: element "fb:login-button" undefined
    …b:login-button size="medium" onlogin="vBfb.handle_fbLogin()"></fb:login-button>
    Is there anything we can do to this code to make it valid?

    Thanks
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74161

    #2
    It is a custom tag <fb:login-button> in its own namespace. The size attribute tells Facebook's javascript how to draw the button. As it is not an XHTML tag, it won't validate. The W3C should actually ignore it because of the custom namespace. That actual code is from Facebook so you should contact them if there are further issues with it.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • James Goddard
      Member
      • Dec 2004
      • 69
      • 3.5.x

      #3
      Originally posted by Wayne Luke
      It is a custom tag <fb:login-button> in its own namespace. The size attribute tells Facebook's javascript how to draw the button. As it is not an XHTML tag, it won't validate. The W3C should actually ignore it because of the custom namespace. That actual code is from Facebook so you should contact them if there are further issues with it.
      Actually what I'm seeing from the validator is complaints about the property attribute on the facebook meta tags, which is cause by VB using the wrong doctype.
      http://www.thescubastop.com
      http://www.midwestdive.com
      http://www.divepros.org

      Comment

      • synseal
        Member
        • Apr 2009
        • 36

        #4
        Was this resolved, I have only 1 invalid markup error

        Line 1, Column 882: there is no attribute "property"


        Line 1, Column 882: there is no attribute "property" …ble and Satellite." /> <meta property="fb:app_id" content="*****************" />…

        Comment

        • slinky
          Senior Member
          • Mar 2001
          • 3113
          • 1.1.x

          #5
          Originally posted by synseal
          Was this resolved, I have only 1 invalid markup error
          Same issue here - worked hard to nail it down to one error and this is it. Very irritating.
          My law forum, lawyers and legal help site

          Comment

          • MK_1
            New Member
            • Mar 2009
            • 28

            #6
            Fixed in vB 4.1.1?
            Macht mit beim 2-Wheel-Planet Adventskalender:

            2WP Adventskalender

            Comment

            • coffee
              Senior Member
              • Mar 2001
              • 122
              • 4.0.x

              #7
              Solved !

              Originally posted by synseal
              Was this resolved, I have only 1 invalid markup error
              The answer is: Yes! Just place Facebook meta code inside HTML-Comment:
              1. ACP > Styles & Templates > Style Manager > Expand Templates > Facebook Templates > facebook_opengraph
              2. Add before the first line:
                HTML Code:
                <--
              3. Add after the last line:
                HTML Code:
                // -->


              The reason is that Facebook will read the code inside comments while W3C will ignore it. Result is a valid page with functional FB-Connect.

              (Source link here)

              Comment

              • synseal
                Member
                • Apr 2009
                • 36

                #8
                Originally posted by coffee
                The answer is: Yes! Just place Facebook meta code inside HTML-Comment:
                1. ACP > Styles & Templates > Style Manager > Expand Templates > Facebook Templates > facebook_opengraph
                2. Add before the first line:
                  HTML Code:
                  <--
                3. Add after the last line:
                  HTML Code:
                  // -->


                The reason is that Facebook will read the code inside comments while W3C will ignore it. Result is a valid page with functional FB-Connect.

                (Source link here)
                Nice!! Thank you.

                Comment

                • coffee
                  Senior Member
                  • Mar 2001
                  • 122
                  • 4.0.x

                  #9
                  You're welcome

                  Comment

                  Related Topics

                  Collapse

                  Working...