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

Respec should allow the inclusion of a canonical URL #317

Closed
marcoscaceres opened this issue Jun 10, 2014 · 5 comments
Closed

Respec should allow the inclusion of a canonical URL #317

marcoscaceres opened this issue Jun 10, 2014 · 5 comments
Milestone

Comments

@marcoscaceres
Copy link
Member

Basically, something like:

<link rel="canonical" href="http://picture.responsiveimages.org">

Use case: to tell Google not to treat WDs on TR as canonical and instead see the Editor's drafts as canonical.

@darobin
Copy link
Member

darobin commented Dec 23, 2014

So, it's not that I'm against this, but what's the value in having to write:

{
    canonicalURL:  "http://picture.responsiveimages.org"
}

Which would have to look for an existing <link> and update it or generate one, instead of just:

<link rel="canonical" href="http://picture.responsiveimages.org">

?

@darobin darobin modified the milestone: v4 Dec 23, 2014
@marcoscaceres
Copy link
Member Author

Pretty much. We prolly don't need this once the W3C starts publishing editor's drafts on TR tho. It wouldn't hurt to have, just in case.

@halindrome
Copy link
Contributor

I agree. Wouldn't hurt to have.
On Dec 23, 2014 7:57 PM, "Marcos Caceres" notifications@github.com wrote:

Pretty much. We prolly don't need this once the W3C starts publishing
editor's drafts on TR tho. It wouldn't hurt to have, just in case.


Reply to this email directly or view it on GitHub
#317 (comment).

@marcoscaceres
Copy link
Member Author

So... thinking about this some more, we should maybe have a rule that if an option directly transforms to a HTML tag, then the tag is preferred over the option. This would rule out things like canonical as something in the config.

Let's close this one.

@darobin
Copy link
Member

darobin commented Jan 5, 2015

Yeah, markup is easier to handle than configuration since it works the same everywhere and you're likely to know how to do it even if you only heard about ReSpec five minutes ago. The configuration language is slowly turning into Sendmail, it could use a hand.

There are cases in which configuration is better than markup, but the markup has to be pretty complicated.

@darobin darobin closed this as completed Jan 5, 2015
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this issue Feb 19, 2018
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