Fix twitter uses name
not property
attribute
#40
Conversation
@wilsonpage can you rebase this and update the tests? Thanks! |
Sorry haven't had chance yet. On Fri, 19 Aug 2016 18:13 Jared Kerim, notifications@github.com wrote:
|
@wilsonpage I can submit a new PR for this against master and update the tests, but I wanted to ask how you felt about leaving the old [invalid] tags in, as well as adding the correct Twitter Basically feedback on #51. |
@pdehaan that's a fair point. TBH the use of |
Per @wilsonpage, yeah, apparently Reddit uses some invalid/un-recommended tags, per #51 (comment) <meta property="og:description" content="Welcome to r/Funny: reddit's largest humour depository">
<meta property="og:image" content="https://www.redditstatic.com/icon.png">
<meta property="og:site_name" content="reddit">
<meta property="og:title" content="funny • /r/funny">
<meta property="twitter:card" content="summary">
<meta property="twitter:site" content="reddit">
<meta property="twitter:title" content="funny • /r/funny"> I think we have no choice but to do checks for both |
@pdehaan @wilsonpage we must absolutely include both cases in the rules. The parser doesn't 'care' what the 'intended' structure of markup is, it only cares about all the ways to get the relevant data from pages. That markup is messy and non-conformant is a founding precept of this library. @pdehaan if you could add both cases to the rules, update the tests, and rebase that would be a huge help! |
No description provided.