Skip to content

Commit

Permalink
Add more examples of invalid module specifiers
Browse files Browse the repository at this point in the history
Sometimes people think you can just test if the first character is ".".
These examples show how that is not correct.
  • Loading branch information
domenic authored and annevk committed Feb 2, 2017
1 parent a828019 commit 75a9e30
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -87823,7 +87823,7 @@ import "https://example.com/foo/../module2.js";</pre>
URL.</p></li>
</ol>

<div class="example">
<div class="example" id="module-specifier-examples">
<p>The following are valid module specifiers according to the above algorithm:</p>

<ul class="brief">
Expand Down Expand Up @@ -87862,9 +87862,15 @@ import "https://example.com/foo/../module2.js";</pre>
<p>The following are not valid module specifiers according to the above algorithm:</p>

<ul class="brief">
<li><code data-x="">https://f:b/c</code></li>
<li><code data-x="">https://eggplant:b/c</code></li>

<li><code data-x="">pumpkins.js</code></li>

<li><code data-x="">.tomato</code></li>

<li><code data-x="">..zucchini.js</code></li>

<li><code data-x="">.\yam.es</code></li>
</ul>
</div>

Expand Down

0 comments on commit 75a9e30

Please sign in to comment.