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…
Support for Webcomponents' CustomElements?
Moderators: trava90, athenian200
-
- Moonbather
- Posts: 62
- Joined: 2021-11-06, 11:10
- Location: Tyskland
-
- Moon Magic practitioner
- Posts: 2194
- Joined: 2018-05-05, 13:29
Re: Support for Webcomponents' CustomElements?
Read the forum, it's been explained in details in multiple threads.
Re: Support for Webcomponents' CustomElements?
-
- Moonbather
- Posts: 62
- Joined: 2021-11-06, 11:10
- Location: Tyskland
Re: Support for Webcomponents' CustomElements?
What a warm welcome, searching for CustomElements showed no results. But thanks for the link.
-
- Pale Moon guru
- Posts: 35637
- Joined: 2011-08-28, 17:27
- Location: Motala, SE
Re: Support for Webcomponents' CustomElements?
search.php?keywords=CustomElements
Pale Moon Forum wrote:Search found 60 matches: CustomElements
Searched query: customelements
"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
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite