We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some live samples in "Making decisions in your code — conditionals" seem to be broken.
Check the screenshot section.
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals#active_learning_more_color_choices
The live samples are work well, I've checked the page built by @mdn/[email protected] (run yarn start in mdn/content` folder):
@mdn/[email protected]
yarn start
See the screenshot section.
Desktop
Chrome
Stable
Linux
No response
The text was updated successfully, but these errors were encountered:
Thanks for reporting. I didn't expect this worked previously. That's because
<script> const script = "<script></script>"; const h1 = "<h1>H1</h1>"; </script>
will render:
We now do real templating so the js parts ends up in a <script> just before the body ends. Allowing real DOM events.
js
<script>
We need to settle on how we want to deal with this. The easiest way is to escape the script tag like:
<script> const script = "<script><"+"/script>"; const h1 = "<h1>H1</h1>"; </script>
or
<script> const script = `<script><${"/"}script>`; const h1 = "<h1>H1</h1>"; </script>
https://github.com/mdn/content/blob/main/files/en-us/learn/javascript/building_blocks/conditionals/index.md?plain=1#L610
Sorry, something went wrong.
No branches or pull requests
Summary
Some live samples in "Making decisions in your code — conditionals" seem to be broken.
Check the screenshot section.
URL
https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals#active_learning_more_color_choices
Reproduction steps
Expected behavior
The live samples are work well, I've checked the page built by
@mdn/[email protected]
(runyarn start
in mdn/content` folder):Actual behavior
See the screenshot section.
Device
Desktop
Browser
Chrome
Browser version
Stable
Operating system
Linux
Screenshot
Anything else?
No response
Validations
The text was updated successfully, but these errors were encountered: