Comments (12)
The correct solution is add the "prefix" property to html tag.
<html lang="en" prefix="og: https://ogp.me/ns#">
from linter.
hmm... now html is not validating nicely as before so will rather ignore linter/reasoner and live with its messages or try to get around it somehow - am new to this so need to figure what you said above out and apply.
from linter.
Without looking at your page source, I suspect that you are setting a Lang attribute (or @language
in JSON-LD) and the property value is being interpreted as a text string, rather than a URI. If using JSON-LD, either don’t set @language
, at least for that property, or better yet, use the expanded value form {“@id”: “https://...”}
. If using Microdata or RDFa, use an href attribute.
from linter.
But, the linter/reasoner, could probably figure out to ignore the language in this case.
from linter.
Correct, when remove lang="en"
' from <html lang="en">
it's not complaining anymore. Am doing reseach on whether removing is a good thing for google.
Many thanks
from linter.
This looks like the line that's causing the problem:
<meta property="og:image:secure_url" content="https://webcoder.eu/assets/img/logosocial.jpg">
The problem is that meta interprets context as text, you could consider using a link element:
<link property="og:image:secure_url" href="https://webcoder.eu/assets/img/logosocial.jpg">
That interprets the value as a URL and should avoid the problem (and is really the right thing to do).
Of course, given that it's an image, you could also use an img element.
from linter.
Changed it ti <link ... href=...>
as above but unfortunately it's still complaining about other bits. At least HTML is validatinng now. Thank you.
Linter Messages
class ogc:url: No class definition found
property og:url: Object "https://webcoder.eu/"@en not compatible with range (ogc:url)
property og:image: Object "https://webcoder.eu/assets/img/logosocial.jpg"@en not compatible with range (ogc:url)
from linter.
I don't quite understand why a valid HTML lang is affecting it
from linter.
Only one message left after changing all tags containing urls to <link... href=
Linter Messages
class ogc:url: No class definition found
from linter.
but now my og appears to be broken
from linter.
I can’t really debug your markup for you, but the messages seem reasonable. Of course, it’s only advisory, and you may ignore it.
The linter uses semantic reasoning to make these determinations, based on the definitions of the vocabulary terms you use.
from linter.
In my website also similar issue facing
Home page
error RDF::ReaderError: Statement #<RDF::Statement:0x7a0f8(nil nil nil .)> is incomplete on linter
my web url : https://www.tacsllc.com/ please help
from linter.
Related Issues (20)
- Linter message: "not compatible with rangeIncludes" HOT 2
- improved accept header HOT 1
- IOError: Failed to open ... Errors found during processing HOT 1
- Updated UI HOT 1
- The URL input doesn't check the user inputs HOT 2
- SDL and a Google AMP document HOT 1
- command line version HOT 1
- No structured data detected HOT 4
- problem with item-number and/or file-size HOT 12
- Run serverless SDL on AWS Lambda HOT 1
- Ability to programmatically POST a HTML/JSON file for linting? HOT 3
- report: implementing SDL on AWS/Lambda HOT 1
- Making Script Input URL? HOT 1
- Some ogp.me tags are not working HOT 6
- Improved structured results to be similar to schemarama.
- Bug when linting JSON-LD with aggregateRating HOT 4
- Update application to remove dependency on sassc
- No linter output when there's an @id for an @graph HOT 2
- strange schema.org/location error output HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter.