Re: [jlreq] Language switching doesn't work in the ED (#231)

> However, we also need to make the code more robust (for example, by handling the exceptions), otherwise when there's a slight change in the ReSpec config or the spec header template, the entire language switching function may not be able to work correctly.

Ah, yes on that point. I wondered whether I've made another mistake for upcoming release (and forgot any other item..).
Considering both easy to be noticed and not to make any change to the production (after compiled/exported by respec), how about 

- to have one additional js block (with class="remove") in index.html for additional test code
- have one wrapper function for switchLang to raise popup by e.g. `try { switchLang() }`
- add code to replace onclick for three buttons, when debug (or something) is added to URL parameter

-- 
GitHub Notification of comment by himorin
Please view or discuss this issue at https://github.com/w3c/jlreq/issues/231#issuecomment-671192941 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 10 August 2020 06:53:31 UTC