kartikprabhu / mf2py

mf2 parser in python (this is an experimental fork)
Other
3 stars 2 forks source link

incorrectly surfacing an inline HTML comment #47

Closed kylewm closed 9 years ago

kylewm commented 9 years ago

mf2py is mysteriously surfacing an HTML inline comment from https://dubiousdod.org/indie/2014/11/repost-of-kyle-mahan-banana-enthusiast-reminds-me

Search for ".repost-entry" below.

cc @thedod

{'items': [{'properties': {'author': [{'properties': {'name': ['The Dod'],
                                                      'photo': ['https://dubiousdod.org/indie/static/img/users/dod.jpg'],
                                                      'url': ['https://dubiousdod.org/indie']},
                                       'type': ['h-card'],
                                       'value': '\n        \n        The Dod\n      '}],
                           'content': [{'html': '\n'
                                                '    <div class="repost-entry p-repost-of h-cite">\n'
                                                '      <div>\n'
                                                '        <span class="p-author h-card">\n'
                                                '          \n'
                                                '            <img alt="Kyle Mahan" class="u-photo" '
                                                'src="/indie/static/_mirror/kylewm.com/static/img/users/resized-64/kyle.jpg"/>\n'
                                                '          \n'
                                                '          <i class="fa fa-retweet"></i>\n'
                                                '          \n'
                                                '            <a class="p-name u-url" href="https://kylewm.com">Kyle Mahan</a>\n'
                                                '            •\n'
                                                '          \n'
                                                '        </span>\n'
                                                '        <a class="u-url" '
                                                'href="https://kylewm.com/2014/11/banana-enthusiast-reminds-me-of-http-overcompensating">\n'
                                                '          \n'
                                                '            kylewm.com\n'
                                                '          \n'
                                                '        </a>\n'
                                                '      </div>\n'
                                                '      <div class="repost-body">\n'
                                                '        \n'
                                                '          <div class="p-name e-content primary-content">\n'
                                                '        \n'
                                                '        <p>banana enthusiast! reminds me of <a '
                                                'href="http://overcompensating.com/oc/index.php?comic=579">overcompensating.com/oc/index.php?comic=579</a></p>\n'
                                                '<p><img alt="" src="http://overcompensating.com/oc/comics/OC0579.png"/></p>\n'
                                                '      </div>\n'
                                                '        \n'
                                                '      </div> <!-- .repost-body -->\n'
                                                '    </div>  .repost-entry \n'
                                                '  ',
                                        'value': '\n'
                                                 '    \n'
                                                 '      \n'
                                                 '        \n'
                                                 '          \n'
                                                 '            \n'
                                                 '          \n'
                                                 '          \n'
                                                 '          \n'
                                                 '            Kyle Mahan\n'
                                                 '            •\n'
                                                 '          \n'
                                                 '        \n'
                                                 '        \n'
                                                 '          \n'
                                                 '            kylewm.com\n'
                                                 '          \n'
                                                 '        \n'
                                                 '      \n'
                                                 '      \n'
                                                 '        \n'
                                                 '          \n'
                                                 '        \n'
                                                 '        banana enthusiast! reminds me of overcompensating.com/oc/index.php?comic=579\n'
                                                 '\n'
                                                 '      \n'
                                                 '        \n'
                                                 '       \n'
                                                 '     \n'
                                                 '  '}],
                           'name': ['reposted this'],
                           'published': ['2014-11-24T11:13:13+0700'],
                           'repost-of': [{'properties': {'author': [{'properties': {'name': ['Kyle Mahan'],
                                                                                    'photo': ['https://dubiousdod.org/indie/static/_mirror/kylewm.com/static/img/users/resized-64/kyle.jpg'],
                                                                                    'url': ['https://kylewm.com']},
                                                                     'type': ['h-card'],
                                                                     'value': '\n'
                                                                              '          \n'
                                                                              '            \n'
                                                                              '          \n'
                                                                              '          \n'
                                                                              '          \n'
                                                                              '            Kyle Mahan\n'
                                                                              '            •\n'
                                                                              '          \n'
                                                                              '        '}],
                                                         'content': [{'html': '\n'
                                                                              '        \n'
                                                                              '        <p>banana enthusiast! reminds me of <a '
                                                                              'href="http://overcompensating.com/oc/index.php?comic=579">overcompensating.com/oc/index.php?comic=579</a></p>\n'
                                                                              '<p><img alt="" '
                                                                              'src="http://overcompensating.com/oc/comics/OC0579.png"/></p>\n'
                                                                              '      ',
                                                                      'value': '\n'
                                                                               '        \n'
                                                                               '        banana enthusiast! reminds me of '
                                                                               'overcompensating.com/oc/index.php?comic=579\n'
                                                                               '\n'
                                                                               '      '}],
                                                         'name': ['banana enthusiast! reminds me of overcompensating.com/oc/index.php?comic=579'],
                                                         'url': ['https://kylewm.com/2014/11/banana-enthusiast-reminds-me-of-http-overcompensating']},
                                          'type': ['h-cite'],
                                          'value': '\n'
                                                   '      \n'
                                                   '        \n'
                                                   '          \n'
                                                   '            \n'
                                                   '          \n'
                                                   '          \n'
                                                   '          \n'
                                                   '            Kyle Mahan\n'
                                                   '            •\n'
                                                   '          \n'
                                                   '        \n'
                                                   '        \n'
                                                   '          \n'
                                                   '            kylewm.com\n'
                                                   '          \n'
                                                   '        \n'
                                                   '      \n'
                                                   '      \n'
                                                   '        \n'
                                                   '          \n'
                                                   '        \n'
                                                   '        banana enthusiast! reminds me of overcompensating.com/oc/index.php?comic=579\n'
                                                   '\n'
                                                   '      \n'
                                                   '        \n'
                                                   '       \n'
                                                   '    '}],
                           'syndication': ['https://twitter.com/TheRealDod/status/536734307243802624'],
                           'url': ['https://dubiousdod.org/indie/2014/11/repost-of-kyle-mahan-banana-enthusiast-reminds-me']},
            'type': ['h-entry']}],
kartikprabhu commented 9 years ago

fixed in above commit

kylewm commented 9 years ago

Thanks Kartik!! :clap: :clap: :clap: