Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When i try to valid the html code using the w3 validator i have this error:
Line 249, Column 34: required attribute "type" not specified
The attribute given above is required for an element that you've used, but you have omitted it. For instance, in most HTML and XHTML document types the "type" attribute is required on the "script" element and the "alt" attribute is required for the "img" element. Typical values for type are type="text/css" for and type="text/javascript" for . http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fviajesmonllar.com%2FComment | File | Size | Author |
---|---|---|---|
#11 | 888756-9-facebook-validation.patch | 20.77 KB | bronzehedwick |
Comments
Comment #1
Carlitus CreditAttribution: Carlitus commentedumm...don't check the link..i've disabled the module meanwhile
Comment #2
ferdi CreditAttribution: ferdi commentedWhat's the line that doesnt validate ?
Comment #3
minus CreditAttribution: minus commented-Tidy Validator for Firefox
Comment #4
Carlitus CreditAttribution: Carlitus commentedit's a script tag without a type="text/javascript"
Comment #5
Rob C CreditAttribution: Rob C commentedCan we try something like this?
http://www.liormark.com/develop/development-articles/facebook-fbml-w3c-v...
Cause tested it, kinda works (to get rid of the validation error) But i ran into some issues on placing the script tag and working together with the core libraries module. So no patch yet.
More info: http://stackoverflow.com/questions/2761622/new-facebook-like-button-html...
> Bump to 7.x? (also suffers from this issue)
Comment #6
jscm CreditAttribution: jscm commentedSubscribe..
I have the same problem and I don't know how can I solve it.
To much errors from fb code.
Do you have a real solution?
Comment #7
jscm CreditAttribution: jscm commentedComment #8
jscm CreditAttribution: jscm commentedI read that using fb like button inside javascript the w3c validator check it with success.
Comment #9
ferdi CreditAttribution: ferdi commentedThere is not much we can do about it http://stackoverflow.com/questions/2761622/new-facebook-like-button-html...
Comment #10
Rob C CreditAttribution: Rob C commentedThe Service Links module does have a 'facebook like button' that vaidates. Maybe that's worth the look?
Comment #11
bronzehedwickBut doesn't that link show that wrapping the meta tags in a comment works?
I tested on the site I'm working on and it seems to work fine.
I've attached a patch for review.
Comment #12
bronzehedwickComment #13
DamienMcKennaClosed a duplicate: #1379208: Update to Drupal Coding Standards
Comment #14
DamienMcKennaA few things. This needs a little more work, specifically PHP arrays should have a trailing comma on the last item; also, each comment needs to be wrapped at 80 chars. Furthermore, the changes should start with the 7.x-2.x branch and work downwards.