Khan / Khan/live-editor

Query strings break HTML environment

Open
#626 4 comments 0 reactions 0 assignees View on GitHub
bug webpage
Dominant language
JavaScript
Stars
776
Forks
180
PR merge metrics
No merged PRs in 30d

Description

Attempting to navigate to a query string does not work in the HTML environment, and worse it actually breaks the environment so that even the "Reload" button won't fix it.

An example of this problem can be found [here](https://www.khanacademy.org/computer-programming/iter-tests/6514431734185984). You need to press "Reload" once for the program to start (an unrelated problem, not really sure why that's happening). After that, click on just about anything in the Jasmine interface. For example, if you click on "iter.Iterator", Jasmine tries to add the query string "spec=iter module iter.Iterator" to the url, but it breaks.

If it was possible to prevent, ignore, or ideally handle navigation to query strings properly, it would be nice.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the problem in the linked HTML environment example by clicking a Jasmine item such as "iter.Iterator" and observing the query-string navigation. Trace the HTML environment's handling of that navigation and the Reload button behavior. Done means query strings are prevented, ignored, or handled without breaking the environment, and reload still works.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.