You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The alt text of img tags is included in the parsed name value, so I can't remove it from the name value, causing XRay to think this is a named post when it tries to dedupe the content and name values.
HTML
<html><head><title>Test</title></head><bodyclass="h-entry"><pclass="e-content p-name">This is a photo post with an <code>img</code> tag inside the content. <imgclass="u-photo" src="http://target.example.com/photo.jpg" alt="a photo"></p></body></html>
mf2 json
{
"type": [
"h-entry"
],
"properties": {
"name": [
"This is a photo post with an img tag inside the content. a photo"
],
"photo": [
"http://target.example.com/photo.jpg"
],
"content": [
{
"html": "This is a photo post with an <code>img</code> tag inside the content. <img class=\"u-photo\" src=\"http://target.example.com/photo.jpg\" alt=\"a photo\">",
"value": "This is a photo post with an img tag inside the content. a photo"
}
]
}
}
{
"type": "entry",
"photo": [
"http://target.example.com/photo.jpg"
],
"content": {
"text": "This is a photo post with an img tag inside the content.",
"html": "This is a photo post with an <code>img</code> tag inside the content."
}
}
This issue is part of #52.
The alt text of img tags is included in the parsed name value, so I can't remove it from the name value, causing XRay to think this is a named post when it tries to dedupe the content and name values.
HTML
mf2 json
https://pin13.net/mf2/?id=20180112184043608
This would be solved by microformats/microformats2-parsing#16
The text was updated successfully, but these errors were encountered: