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

Unify void elements style #10644

Merged

Conversation

robinpokorny
Copy link
Member

@robinpokorny robinpokorny commented Jul 26, 2017

In the spec, examples, and docs the style of void elements in <head> is inconsistent. I noticed it first for <link rel="canonical" …> in the tutorial, which includes / compared to <meta>s around it. A quick look at other places showed me that the style without / is prevailing.

screenshot_2017-07-26_15_52_34


This PR removes the closing slash for all <link> and <meta> elements.

  • Replaced all occurrences of <link (.+) ?/> resp. <meta (.+) ?/>, with <link $1> resp. <meta $1>.

Sibling PR in ampproject/docs: ampproject/amp.dev#632

@robinpokorny
Copy link
Member Author

robinpokorny commented Jul 26, 2017

The CI has currently an issue, PR for which is #10645.

@jridgewell
Copy link
Contributor

@robinpokorny: Can you rebase after the docs link fix?

@robinpokorny
Copy link
Member Author

@jridgewell, done 😄

@jridgewell jridgewell merged commit 445b632 into ampproject:master Jul 31, 2017
@robinpokorny robinpokorny deleted the unify-void-elements-style branch August 1, 2017 09:55
@YunusMeran
Copy link

Hi,
I added rel="amphtml" to the original (non-amp) page and added rel="canonical" to the amp page but in the search console I get "Alternate page with proper canonical tag"
How can I solve this problem?
This is an example page of our website:
https://airport.online/amp/istanbul-airport/en/cip-and-lounges
I have 253 Affected pages :(
Please help me.
Thanks.

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

Successfully merging this pull request may close these issues.

5 participants