HTML5(?) issue Topic is solved

Users and developers helping users with generic and technical Pale Moon issues on all operating systems.

Moderator: trava90

Forum rules
This board is for technical/general usage questions and troubleshooting for the Pale Moon browser only.
Technical issues and questions not related to the Pale Moon browser should be posted in other boards!
Please keep off-topic and general discussion out of this board, thank you!
esgwpl

HTML5(?) issue

Unread post by esgwpl » 2018-05-25, 01:11

https://magcius.github.io/xplain/article/x-basics.html
I'm on Arch Linux using the 64-bit 27.9.2 binary from https://linux.palemoon.org/download/mainline/ and I can't seem to get the interactive elements of the above page to work, I tried starting Pale Moon with a clean profile and tried downgrading to 27.8.3 to no avail.
The page is supposed to generate an X server inside an HTML5 canvas that you can interact with for learning purposes, I tried using Firefox and everything seems to work fine there.

User avatar
Isengrim
Board Warrior
Board Warrior
Posts: 1325
Joined: 2015-09-08, 22:54
Location: 127.0.0.1

Re: HTML5(?) issue

Unread post by Isengrim » 2018-05-25, 02:39

I see this in the web console (which you can open using Ctrl+Shift+K):

Code: Select all

SyntaxError: invalid for/in left-hand side article.js:44:13
SyntaxError: invalid for/in left-hand side region.js:27:13
SyntaxError: class is a reserved identifier client-util.js:13:31
SyntaxError: class is a reserved identifier server.js:22:4
SyntaxError: class is a reserved identifier inspector.js:9:4
SyntaxError: class is a reserved identifier demo-common.js:41:31
SyntaxError: class is a reserved identifier x-basics.js:61:4
I'm not sure what the first two messages are, though I have seen them before.
The remaining five tell me that this website is using ES6 JavaScript classes, which are not supported in Pale Moon 27. However, the class syntax will be supported in Pale Moon 28 when it is released later this year, and is currently supported in the latest release of Basilisk.
a.k.a. Ascrod
Linux Mint 19.3 Cinnamon (64-bit), Debian Bullseye (64-bit), Windows 7 (64-bit)
"As long as there is someone who will appreciate the work involved in the creation, the effort is time well spent." ~ Tetsuzou Kamadani, Cave Story

vannilla
Moon Magic practitioner
Moon Magic practitioner
Posts: 2194
Joined: 2018-05-05, 13:29

Re: HTML5(?) issue

Unread post by vannilla » 2018-05-25, 06:55

The "for/in" errors are caused by the for...of statement: https://developer.mozilla.org/en-US/doc ... s/for...of
It seems to be unsupported in Pale Moon, or anyway in an incomplete way.