I think it will be more valid, when twitter cards use name instead of property attribute in meta tag.

Works:

<meta property="twitter:card" content="summary">
<meta property="twitter:title" content="My twitter card title"> 

Valid:

<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="My twitter card title"> 
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

IT-Cru created an issue. See original summary.

jalpesh’s picture

Status: Active » Needs review
FileSize
28.13 KB

I agree with you because of this twitter guide https://dev.twitter.com/cards/getting-started. A module maintainer would be the best person to comment on this issue. I have attach a patch which will replace property to name.

cilefen’s picture

The article reads:

Open Graph protocol also specifies the use of property and content attributes for markup () while Twitter cards use name and content. Twitter’s parser will fall back to using property and content, so there is no need to modify existing Open Graph protocol markup if it already exists in your page.

-- https://dev.twitter.com/cards/getting-started

Is this issue necessary?

cilefen’s picture

It needed a reroll and it works in terms of changing the meta tag "property" to "name". We need this tested on the Twitter cards verifier.

cilefen’s picture

Issue tags: +govcon2016
DamienMcKenna’s picture

Status: Needs review » Needs work

The last submitted patch, 6: metatag-n2746031-6.patch, failed testing.

cilefen’s picture

Status: Needs work » Needs review
FileSize
554 bytes
29.92 KB
DamienMcKenna’s picture

Just added back the 'node' dependency, for now.

DamienMcKenna’s picture

Status: Needs review » Needs work

Need to add more tests to confirm the output is correct.

DamienMcKenna’s picture

cilefen’s picture

susannecoates’s picture

Reviewing patch at Drupal GovCon 2016

susannecoates’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests
Related issues: +#2745177: Write tests to ensure all submodules can be enabled & all meta tags are usable

Manual testing seems to indicate that this patch is working. Recommend writing a test for a more thorough/complete evaluation of patch.

DamienMcKenna’s picture

Issue tags: -Needs manual testing

Now that #2745177 is in, this needs to be finished off with some tests to ensure the tags work correctly.

DamienMcKenna’s picture

Now that we have #2780025: Write tests for confirming all meta tags output correctly committed, this becomes easier to do. This updates the tests.

  • DamienMcKenna committed 796b8da on 8.x-1.x authored by jalpesh
    Issue #2746031 by jalpesh, cilefen, DamienMcKenna, susannecoates: Fixed...
DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. Thanks all!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.