Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

validator.schema.org : when using localhost as domain, validator don't find "contentUrl" and "thumbnailUrl" #3386

Open
eldk opened this issue Oct 16, 2023 · 1 comment
Labels
no-issue-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).

Comments

@eldk
Copy link

eldk commented Oct 16, 2023

Hello,

  • Using some HTML extracted from a website in development, using localhost, validator don't find "contentUrl" and "thumbnailURL".
<doc-container itemprop='image' itemscope itemtype='https://schema.org/ImageObject'>
	<doc-thumbnail>
		<a itemprop='contentUrl' href='http://localhost/img/img.jpg'
				title='Image'
				type="image/jpeg">
		<img itemprop='thumbnailUrl' src='http://localhost/local/cache-vignettes/img-thumbnail.jpg'
				 width='300'
				 height='225'
				 alt='img thumbnail'
				 >
		</a>
	</doc-thumbnail>
	<div>
	
		<doc-title itemprop='caption'>The image description</doc-title>
	</div>
</doc-container>

validator schema org_ (1)

This works if you use a "domain.tld" url like google.com for example.

<doc-container itemprop='image' itemscope itemtype='https://schema.org/ImageObject'>
	<doc-thumbnail>
		<a itemprop='contentUrl' href='http://google.com/img/img.jpg'
				title='Image'
				type="image/jpeg">
		<img itemprop='thumbnailUrl' src='http://google.com/local/cache-vignettes/img-thumbnail.jpg'
				 width='300'
				 height='225'
				 alt='img thumbnail'
				 >
		</a>
	</doc-thumbnail>
	<div>
	
		<doc-title itemprop='caption'>The image description</doc-title>
	</div>
</doc-container>

validator schema org_

Is this wanted or is this forgotten ?

I think devs should test schema.org microdatas generated from their dev environment (using http(s)://localhost:port or http(s)://127.0.0.1:port) or at least this may be documented here : https://webschemas.org/docs/validator.html.

Thanks,

Eric

Copy link

This issue is being nudged due to inactivity.

@github-actions github-actions bot added the no-issue-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!). label Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-issue-activity Discuss has gone quiet. Auto-tagging to encourage people to re-engage with the issue (or close it!).
Projects
None yet
Development

No branches or pull requests

1 participant