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

Fix HTML to JSX converter to work with https #3456

Merged
merged 1 commit into from
Mar 19, 2015
Merged

Fix HTML to JSX converter to work with https #3456

merged 1 commit into from
Mar 19, 2015

Conversation

waldreiter
Copy link
Contributor

Fixes #3455

@@ -6,6 +6,6 @@ id: html-jsx
<div class="jsxCompiler">
<h1>HTML to JSX Compiler</h1>
<div id="jsxCompiler"></div>
<script src="http://reactjs.github.io/react-magic/htmltojsx.min.js"></script>
<script src="https://reactjs.github.io/react-magic/htmltojsx.min.js"></script>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not

<script src="//reactjs.github.io/react-magic/htmltojsx.min.js"></script>

so it is protocol agnostic?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 for //

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In another PR // was used at first, but it was argued that the prefix should be https//: #3180 (comment)

@zpao I am happy to change this, just let me know.

@pirate
Copy link

pirate commented Mar 19, 2015

+1 if you make it // instead of https://

@sophiebits
Copy link
Collaborator

This is good as-is – thanks!

sophiebits added a commit that referenced this pull request Mar 19, 2015
Fix HTML to JSX converter to work with https
@sophiebits sophiebits merged commit 1a102a2 into facebook:master Mar 19, 2015
@Daniel15
Copy link
Member

Thanks - I'm curious as to why this only broke recently though? Is the React site loading via HTTPS now but it never used to?

@pirate
Copy link

pirate commented Mar 19, 2015

The link to the conversion page is relative, so it'll only break if they originally landed on the github pages domain using https (which is not the default). I have the https-everywhere extension which is why it broke for me.

[HTML to JSX converter](/react/html-jsx.html) to convert your existing HTML to

sophiebits added a commit that referenced this pull request Apr 14, 2015
Fix HTML to JSX converter to work with https
@jimfb
Copy link
Contributor

jimfb commented Feb 21, 2016

Looks like we never merged this to stable.

@zpao
Copy link
Member

zpao commented Feb 22, 2016

This was landed before the stable branch was cut and you can see this code in the branch.

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

Successfully merging this pull request may close these issues.

HTMLtoJSX is not defined on HTML to JSX converter page
8 participants