duckduckgo.com - Search settings button does not work

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3082
Joined: 2012-08-19, 20:32

duckduckgo.com - Search settings button does not work

Post by back2themoon » 2025-11-25, 21:52

https://duckduckgo.com/?q=bitmap+brothe ... oon&ia=web

This is a quick search settings toggle. Fairly new, I think. When pressed, nothing happens. The settings pop-up does not appear. Couldn't find any errors:
Not working.png
This should appear:
Working.png
You do not have the required permissions to view the files attached to this post.

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1120
Joined: 2020-11-03, 06:47
Location: Philippines

Re: duckduckgo.com - Search settings button does not work

Post by jobbautista9 » 2025-11-26, 01:02

Can confirm as well. I thought polyfilling the Intl.ListFormat would work (I used the polyfill by wessberg via unpkg.com and added with Modify HTTP Response, and had to override DDG's CSP to null via the Rewrite HTTP Headers add-on) but even that didn't make the search settings button work again...

I've sent feedback to them via the Share Feedback button. Hopefully they will see it. :coffee:
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
adoxa
Astronaut
Astronaut
Posts: 557
Joined: 2019-03-16, 13:26
Location: Qld, Aus.

Re: duckduckgo.com - Search settings button does not work

Post by adoxa » 2025-11-26, 06:06

It actually catches the ListFormat error, so what you're seeing there is just a log message, not an actual exception. It uses <a> inside of <button>, so the click isn't being processed. Open about:config, set dom.forms.button.standards_compliant to false and restart.

User avatar
jobbautista9
Board Warrior
Board Warrior
Posts: 1120
Joined: 2020-11-03, 06:47
Location: Philippines

Re: duckduckgo.com - Search settings button does not work

Post by jobbautista9 » 2025-11-26, 06:13

Ah, that makes sense now. ListFormat was a red herring, I didn't need the polyfill at all. Thanks for analyzing this deeper! :thumbup:

I wonder if it's possible to have the browser warn in the Toolkit Error Console while it's in standards-compliant mode for <button> when it sees an anchor inside of its subtree. That would make debugging this kind of issue easier in the future, and help evangelize the correct standard behavior for buttons to web developers...

EDIT: Here's a Greasemonkey userscript I've cooked up quick which should do the warning fine I think. Hopefully the MutationObserver not being disconnected won't be a problem though (the GC should be able to clear them right?)...

Code: Select all

// ==UserScript==
// @name        Detect non-standard buttons
// @namespace   job.tilde.team
// @include     *
// @version     1.0
// @grant       none
// ==/UserScript==

const config = { attributes: true, childList: true, subtree: true };

var oldLength = 0;
const callback = (mutationList, observer) => {
  var badAnchors = document.querySelectorAll("button * a")
  if (badAnchors.length > oldLength) {
    console.warn("An anchor inside a button is detected. Standard " +
                  "behavior mandates that any elements inside a <button> " +
                  "will be display-only content, and as such any click " +
                  "event will only be sent to the button, not the anchor. " +
                  "This may lead to the button not working as expected. " +
                  "Detected anchors:\n%o", badAnchors);
    oldLength = badAnchors.length;
  }
}

const observer = new MutationObserver(callback);
observer.observe(document.body, config);
Screenshot 2025-11-26 154756.png
You do not have the required permissions to view the files attached to this post.
Image

Tired of creating stuff!

Avatar artwork by Shinki669: https://www.pixiv.net/artworks/113645617

XUL add-ons developer. You can find a list of add-ons I manage at http://rw.rs/~job/software.html.

User avatar
Moonchild
Project founder
Project founder
Posts: 38690
Joined: 2011-08-28, 17:27
Location: Sweden

Re: duckduckgo.com - Search settings button does not work

Post by Moonchild » 2025-11-26, 09:10

I'll shoot my contacts at DDG a report about this. Hopefully they will fix this quirk-reliant behaviour, because the spec is explicit about this being wrong behaviour.
WhatWG standard wrote:Content model:
Phrasing content, but there must be no interactive content descendant and no descendant with the tabindex attribute specified.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
billmcct
Board Warrior
Board Warrior
Posts: 1091
Joined: 2012-09-04, 15:19
Location: Union City Georgia USA

Re: duckduckgo.com - Search settings button does not work

Post by billmcct » 2025-11-26, 19:24

Personally, I use the hamburger menu in upper right corner. (three lines)
--------------------------------------------------------------------------------------------------------------
Dell Precision 15 7550
Windows 10 Pro. 22H2 19045.5965
Xeon W-10885M
64 GB DDR4 ECC memory (128 GB max)
1 TB Samsung 9100 Pro M2 SSD (Main)
2 TB Samsung 9100 Pro M2 SSD (storage)
500 GB Corsair T500 storage M2 SSD (6 TB max)
Intel onboard GPU 1080p
Quadro RTX 5000 Max-Q GPU 4K

Pale Moon 33.9.x x64 AVX2 build

The difference between the Impossible and the Possible lies in a man's Determination.
Tommy Lasorda

User avatar
Moonchild
Project founder
Project founder
Posts: 38690
Joined: 2011-08-28, 17:27
Location: Sweden

Re: duckduckgo.com - Search settings button does not work

Post by Moonchild » 2025-11-27, 12:56

jobbautista9 wrote:
2025-11-26, 06:13
I wonder if it's possible to have the browser warn in the Toolkit Error Console while it's in standards-compliant mode for <button> when it sees an anchor inside of its subtree. That would make debugging this kind of issue easier in the future, and help evangelize the correct standard behavior for buttons to web developers...
It should be possible but will require digging where exactly to check, and how extensive the check should be, because "interactible" is more than just anchors, and having an anchor inside a button doesn't necessarily imply that the site tries to use it for navigation, etc.
"There is no point in arguing with an idiot, because then you're both idiots." - Anonymous
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Goodydino
Keeps coming back
Keeps coming back
Posts: 933
Joined: 2017-10-10, 21:20

Re: duckduckgo.com - Search settings button does not work

Post by Goodydino » 2025-11-27, 19:57

billmcct wrote:
2025-11-26, 19:24
Personally, I use the hamburger menu in upper right corner. (three lines)
I used that one and it worked. I got a menu and tried one of the options. It worked fine. Maybe it is a Windows-specific problem?

User avatar
back2themoon
Knows the dark side
Knows the dark side
Posts: 3082
Joined: 2012-08-19, 20:32

Re: duckduckgo.com - Search settings button does not work

Post by back2themoon » 2025-11-27, 20:09

Goodydino wrote:
2025-11-27, 19:57
billmcct wrote:
2025-11-26, 19:24
Personally, I use the hamburger menu in upper right corner. (three lines)
I used that one and it worked. I got a menu and tried one of the options. It worked fine. Maybe it is a Windows-specific problem?
It's irrelevant, because no one here is talking about the hamburger menu. Not what the topic is about.