0

I have bookmarklet that create REPL with Scheme language using my Scheme based lisp in JavaScript and jQuery Terminal.

The bookmarklet is not important it just create terminal the link to the bookmarklet is on GitHub:

https://github.com/jcubic/lips/blob/devel/examples/bookmark.js

, that works fine on any website but when I've run it on Scheme SRFI page that have this doctype:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

the terminal don't work correctly. What's different is that when I type "(lambda ()" and move cursor over second open bracket, the next closing bracket and in next line.

Screenshot

It works perfectly fine on any other website. Can any expert explain what is happening and if there is a way to add something to make it work? The page have almost no CSS. So there are no conflicts and I've added scoped class names so each generic name have cmd- and terminal- prefix in class name just to be sure that are no conflicts.

Sorry, no simple and minimal example. Maybe you will be able to answer just looking at dev tools with actual code.

I run this on Fedora GNU/Linux with latest Chrome browser.

jcubic
  • 61,973
  • 54
  • 229
  • 402
  • I'm not sure what I did by I just published version 2.18.0 there are lot of changes and the bookmark magically works. If you have similar issue you can check the difference between version 2.17.6 and 2.18.0. If you don't know how, if you comment I can try to check what was the difference, it don't need this myself right now. – jcubic Aug 22 '20 at 10:15

1 Answers1

0

It's expected to work weird with old HTML. Not sure why do you care about that old page, but you might want to read about quirks mode https://en.m.wikipedia.org/wiki/Quirks_mode

Nux
  • 9,276
  • 5
  • 59
  • 72
  • I care about this page because it's go to place for extensions to Scheme language, it's still updated, new proposal are still added. – jcubic Aug 22 '20 at 10:11
  • Thanks, for your answer, It seems this just magically got fixed after I've published version 2.18.0 of jQuery Terminal. I didn't added any specific code for this issue. – jcubic Aug 22 '20 at 10:16
  • Code that is still working with quirks mode. Wow. Congrats . I haven't heard or even think about quirks mode in ten years or so – Nux Aug 25 '20 at 10:51