cheng-alvin / durian.js

Durian.js is a lightweight Javascript framework that allows for custom HTML tag to create interactive components for large applications! Easy to learn, light and fun to develop with!
MIT License
2 stars 2 forks source link

Remove support for multiple `<script>` tag #25

Closed cheng-alvin closed 10 months ago

cheng-alvin commented 10 months ago

Bug report 🐛

As mentioned in #23:

Another thing about this is the fact that the behaviour could vary inside different browsers. For example, some browsers support having many script tags while some don't.

However, other behaviors are not defined and there is variation. For example, Opera (at least on Windows XP for version 10.6) ran each script tag in its own context -- so local variables in the 3rd script block would be out of scope if referred to in the 4th script block.

From original source: https://stackoverflow.com/a/4659555/15492585

Honestly, this seems very irrelevant from this point in this issue, I think this belongs to be in another issue for itself.

Therefore, here's the separate issue for managing the deprecation if you would of the multiple <script> tag.