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

subjectSelector adds stylesheets as entities #19

Open
beberlei opened this issue May 10, 2011 · 2 comments
Open

subjectSelector adds stylesheets as entities #19

beberlei opened this issue May 10, 2011 · 2 comments

Comments

@beberlei
Copy link
Contributor

The subjectSelector searches for "src", which is not an RDF attribute, leading to stylesheets being detected as entities when searching the document for RDFas. I suggest changing:

subjectSelector: '[about],[typeof],[src],html',

to

subjectSelector: '[about],[typeof],html',
@bergie
Copy link
Owner

bergie commented May 11, 2011

Didn't have time to check the RDFa spec, but at least Wikipedia lists src as a valid RDFa attribute: about and src – a URI or CURIE specifying the resource the metadata is about.

http://en.wikipedia.org/wiki/RDFa#Essence

@neogermi
Copy link
Contributor

so, we should rather ignore elements with "link" or "script" tags?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants