Page 1 of 1

Support for Webcomponents' CustomElements?

Posted: 2021-11-06, 11:58
by pale guru
Recently I came across a few sites that use a relatively new feature (or toy, lol, as you wish) of Webcomponents' CustomElementRegistry. In example a word count class is added to the paragraph HTML tag.

When a website calls window.customElements (without the useful try…catch of course), Palemoon (29.4.1) displays at the console:

TypeError: window.customElements is undefined

Checking about:config in Palemoon, there is a setting for dom.webcomponents.enabled (defaults to false). Setting this to true just vanishes the TypeError.

This demo https://webkit.org/wp-content/uploads/c ... -demo.html should show a progress bar, instead a “ReferenceError: customElements is not defined” is thrown: custom-element-demo.html:34:1

Since this CustomElements stuff was introduced officically in FF63, is this going to be a backported to Palemoon some day, or is there any fallback in Palemoon?

NB: There might be some useful cases for CustomElements, but i fear it will end up just like most other features – motto: it is new!1! so we have to use it on our new site! Like, so, class coffee_machine extends paragraph_tag… Half of the Javascript forest could be lumbered for the use of HTML5 elements (fade in-out-over, resize images), but Javascript seems modern and blown up…

Re: Support for Webcomponents' CustomElements?

Posted: 2021-11-06, 13:48
by vannilla
Read the forum, it's been explained in details in multiple threads.

Re: Support for Webcomponents' CustomElements?

Posted: 2021-11-06, 17:15
by New Tobin Paradigm
pale guru wrote:
2021-11-06, 11:58
[...]
That's what you get for being a fake guru. Know your role.

viewtopic.php?f=62&t=27497#p221033

Re: Support for Webcomponents' CustomElements?

Posted: 2021-11-07, 02:37
by pale guru
What a warm welcome, searching for CustomElements showed no results. But thanks for the link.

Re: Support for Webcomponents' CustomElements?

Posted: 2021-11-07, 04:37
by Moonchild
pale guru wrote:
2021-11-07, 02:37
searching for CustomElements showed no results.
search.php?keywords=CustomElements
Pale Moon Forum wrote:Search found 60 matches: CustomElements

Searched query: customelements
Off-topic:
pale guru wrote:
2021-11-07, 02:37
What a warm welcome
It's the kind of response you invite by choosing that kind of username and asking a dumb question that has been answered many times over on the forum. You can only blame yourself for that one :)