41,763 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
54
views
offsetWidth does not match visible element width
I am running into a very confusing issue when measuring the width of a button using offsetWidth.
I am using Vue 3 and Quasar (q-btn). Visually, the button looks completely correct and the text I am ...
0
votes
1
answer
98
views
Drag and drop API bugs/strange behavior on Firefox and Chrome [closed]
I want to create an application where you can use drag and drop to transfer some short string data from one browser window to another (where either window can be a popup window). Code in the example ...
Best practices
1
vote
2
replies
74
views
Is there any performance difference between applying a bunch of CSS classes to each child of an element or using selectors in a CSS file
Let's say I have a table with many many rows:
<ul>
<tr>
<td>column1</td><td>column2</td><td>column3</td><td>column4</td>
<td>...
3
votes
2
answers
105
views
How to get script element from error event?
On my website I have dozens of scripts from external vendors, some of which attach additional inline scripts. When those inline scripts throw an error, I get stack traces like at HTMLDocument.e (<...
0
votes
1
answer
97
views
How to replace Quill default link tooltip with a custom Angular component in ngx-quill?
I am using ngx-quill in an Angular 18 project and I need to completely replace the default link tooltip with a custom Angular form. I've implemented a custom Blot to handle additional data attributes ...
Best practices
1
vote
3
replies
69
views
Splitting website css and js files into smaller riles or combining them in 2025
Whilst this question has been asked many times before there are seldom recommendation on it with modern browsers in 2025.
Example:
Total CSS for a website is 200kb.
Total JS is 100kb.
We know the ...
Advice
1
vote
3
replies
79
views
Where Professor Prebid stores its data
I'm working on my own extension based on professor prebid. Idea is to collect data from professor, group it in one big, structurized object, remake it as string, and send at openAI API for "...
0
votes
0
answers
85
views
How to make instanceof work across multiple frames?
The MDN documentation states this about instanceof across multiple frames:
For example, to check if a Node is an SVGElement in a different context, you can use myNode instanceof myNode.ownerDocument....
0
votes
0
answers
75
views
How does the Gboard, when typing into a textfield on Chrome mobile, do "select all"?
I have a
<input type="text"...
...on a page, and need to copy all the changes so that I can display them in a wasm app. I'm stuck with this "select all" operation on Gboard. ...
0
votes
2
answers
63
views
How to select an element after changing its class name with DOM? [duplicate]
The objective is to create a start button that activates the 3x3 grid and make it playable.
The cells start with an 'inactive' class. Clicking on the start button changes them from 'inactive' to '...
Advice
0
votes
2
replies
71
views
How to obtain HTML DOM from markdown?
I have some markdown text.
I use MarkDig to parse the markdown text and obtain a markdown-document-object-model. (markdown-DOM.)
From that, I want to obtain an HTML-DOM.
As far as I can tell, the only ...
Advice
0
votes
0
replies
40
views
In silevis/reactgrid ReactGrid .rg-partial-area-selected-range element does not disappear after setting the focusLocation property
I am using the ReactGrid component and I have enabled fillHandled and rangeSelection. Also, I am controlling the focus with focusLocation property. However, there is one scenario that does not work as ...
0
votes
0
answers
86
views
Disappearing menu hamburger from address bar on Safari mobile
I have a web page where I allow users to download an image by clicking a button. I’m using vanilla JavaScript like this:
async function downloadFile(url) {
const response = await fetch(url);
const ...
-4
votes
1
answer
124
views
golang http.Get() only returning a portion of html body
CONTEXT: My goal is to use http.Get(), then use the golang.org/x/net/html package to parse the resp.Body and extract some bits of data from some <div>'s that all use a similar naming scheme for ...
1
vote
1
answer
77
views
Dynamic tab content from hidden div not rendering reliably with jQuery on PHP page
I'm building a PHP page with multiple tabs (Termijnen, Mandaten, and Admin). Each tab's content is pre-rendered by PHP inside hidden <div> elements. I then inject the content into a visible ...