Fixing urls to start with 'https' (#1632)

Fixing urls to start with 'https'
This commit is contained in:
Alexey Pyltsyn 2019-11-27 09:18:01 +03:00 committed by GitHub
commit 2af74029e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View file

@ -20,7 +20,7 @@ The fix is simple:
} }
</script> </script>
<a href="http://w3.org" onclick="*!*return handler()*/!*">w3.org</a> <a href="https://w3.org" onclick="*!*return handler()*/!*">w3.org</a>
``` ```
Also we can use `event.preventDefault()`, like this: Also we can use `event.preventDefault()`, like this:
@ -35,5 +35,5 @@ Also we can use `event.preventDefault()`, like this:
*/!* */!*
</script> </script>
<a href="http://w3.org" onclick="*!*handler(event)*/!*">w3.org</a> <a href="https://w3.org" onclick="*!*handler(event)*/!*">w3.org</a>
``` ```

View file

@ -14,7 +14,7 @@ Why in the code below `return false` doesn't work at all?
} }
</script> </script>
<a href="http://w3.org" onclick="handler()">the browser will go to w3.org</a> <a href="https://w3.org" onclick="handler()">the browser will go to w3.org</a>
``` ```
The browser follows the URL on click, but we don't want it. The browser follows the URL on click, but we don't want it.

View file

@ -16,7 +16,7 @@
<fieldset id="contents"> <fieldset id="contents">
<legend>#contents</legend> <legend>#contents</legend>
<p> <p>
How about to read <a href="http://wikipedia.org">Wikipedia</a> or visit <a href="http://w3.org"><i>W3.org</i></a> and learn about modern standards? How about to read <a href="https://wikipedia.org">Wikipedia</a> or visit <a href="https://w3.org"><i>W3.org</i></a> and learn about modern standards?
</p> </p>
</fieldset> </fieldset>

View file

@ -16,7 +16,7 @@
<fieldset id="contents"> <fieldset id="contents">
<legend>#contents</legend> <legend>#contents</legend>
<p> <p>
How about to read <a href="http://wikipedia.org">Wikipedia</a> or visit <a href="http://w3.org"><i>W3.org</i></a> and learn about modern standards? How about to read <a href="https://wikipedia.org">Wikipedia</a> or visit <a href="https://w3.org"><i>W3.org</i></a> and learn about modern standards?
</p> </p>
</fieldset> </fieldset>