Puzzle: Given the same html string, playground and server side use output different metadata · Issue #21 · kepano/defuddle · GitHub
More Web Proxy on the site http://driver.im/
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
Notice that domain,favicon,image,published,author, and site are all null in later output. After some playing around, I figured out that this behavior seems to stem from the presence of the application/ld+json data in the original html. If you remove that, the output becomes identical:
So the question is - why does the presence of the schemaOrgData in the original HTML populate domain andfavicon on the playground but not in the server side use?
The text was updated successfully, but these errors were encountered:
Given the following HTML string:
The Defuddle Playground returns the following metadata
While using defuddle outside of the playground yields the following metadata:
This is the code that produces the later output:
Notice that
domain
,favicon
,image
,published
,author
, andsite
are all null in later output. After some playing around, I figured out that this behavior seems to stem from the presence of theapplication/ld+json
data in the original html. If you remove that, the output becomes identical:So the question is - why does the presence of the
schemaOrgData
in the original HTML populatedomain
andfavicon
on the playground but not in the server side use?The text was updated successfully, but these errors were encountered: