Skip to content

Incorrect Schema.org's itemprop upvoteCount for negative score #733

@sebbrudzinski

Description

@sebbrudzinski

Q2A version: 1.8.3

If a post has got a negative score, its itemprop upvoteCount used for Schema.org microdata will be incorrect and will contain an absolute value of the actual score.

Eg. a post with score -2 results in the following HTML:

<span class="qa-netvote-count-data">–2</span> <span class="qa-netvote-count-pad"> votes <meta itemprop="upvoteCount" content="2"> </span>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions