HTML5 related problem

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
ben557

HTML5 related problem

Unread post by ben557 » 2014-10-22, 21:27

This is my friend's portfolio:

https://ryanspice.com/R6.1/

It fully works on all browsers except Pale Moon. Though it works in Firefox, it's slow -- but it does work!
Last edited by ben557 on 2014-10-22, 23:43, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35647
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: HTML5 related problem

Unread post by Moonchild » 2014-10-22, 23:20

I'd say it's a bug on the website.
See the large amount of errors in markup:
http://validator.w3.org/check?uri=https ... ne&group=0

Firefox might be able to guess a few more incorrect things correctly, but I'd suggest that your friend goes in and tries to make the website at least somewhat standards compliant to make it more accessible to the public, especially if it's a portfolio.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

ben557

Re: HTML5 related problem

Unread post by ben557 » 2014-10-22, 23:29

Yeah, I bug him about being lazy quite often. I even told him a few weeks ago how to irradicate the note: "* Old GameMaker files don't support Vista or Up" using a utility designed to upgrade Game Maker executables, and he still hasn't updated them. :problem:

:coffee:
Last edited by ben557 on 2014-10-22, 23:45, edited 1 time in total.

ben557

Re: HTML5 related problem

Unread post by ben557 » 2014-10-22, 23:42

none of them, have anything to do with the canvas element or why it doesnt work in palemoon, its all HTML validation. the canvas doesn't display because of:

[19:32:30.232] Error: useless setTimeout call (missing quotes around argument?) @ https://ryanspice.com/R6.1/js/spice.js:2385
which you find in the javascript console, this breaks program thus preventing certain alignments actions to be had.

additionally this error:

[19:32:19.003] The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. @ http://start.palemoon.org/https://ryanspice.com/R6.1/

maybe of use when considering that I don't declare a doc type.

However, what is stopping the program from running is most likely due to the syntax used for the game loop found in the first error. What I can tell you is that the program is failing to find a requestAnimationFrame or similar. The fallback is a setTimeout call. This is where the program fails.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35647
Joined: 2011-08-28, 17:27
Location: Motala, SE

Re: HTML5 related problem

Unread post by Moonchild » 2014-10-23, 05:44

requestAnimationFrame() is fully supported in Pale Moon.

So in that case the problem is twofold in the js library in use: incorrect feature detection, and a broken fallback routine due to a syntax error.

Edit: a quick look in spice.js shows it's riddled with userAgent detection/matching, including the polyfill used for requestAnimationFrame() at the very end. Do not use userAgent sniffing. It's a bad idea.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite