« first day (4485 days earlier)      last day (456 days later) » 

12:17 AM
posted on January 25, 2023 by Daniel Gagnon

The Dev channel is being updated to OS version: 15324.0.0, Browser version: 111.0.5550.0 for most ChromeOS devices. If you find new issues, please let us know one of the following waysFile a bugVisit our ChromeOS communitiesGeneral: Chromebook Help CommunityBeta Specific: ChromeOS Beta Help CommunityReport an issue or send feedback on ChromeInterested in switching channels?&

 
12:38 AM
There’s no way to tell if Function.prototype.toString() has been monkey-patched, is there? (while making sure the assertion itself isn’t spoofed) 😔
 
 
14 hours later…
2:21 PM
hi
I have a question.
I tried using process.binding('util').getPromiseDetails in nodeJs to get promise status and I used some nodejs API that returns promise and queried whether that promise is resolved in synchronous manner, but it always told me that promise is not resolved( Code is here pastebin.com/DewTs7Ff) even though answer usually comes in milliseconds. My question was do we need stack to be empty so that even internally promise is marked as resolved.
I know then handler runs when stack is empty, but does internally promise is marked as resolved only when stack is empty?
 
2:47 PM
A promise handler is always invoked at least the next event loop. Even if it's resolved "now". So, callbacks for resolution will never, ever be called within the same event loop cycle.
See Callbacks, synchronous and asynchronous and [Designing APIs for Asynchrony ](blog.izs.me/2013/08/designing-apis-for-asynchrony) for why it's a bad idea for something to be "half-async". E.g. consider:
function sometimesAsync(input) {
	if (cache.has(input))
		return cache.get(input);

	return calculateResultAsync(cache);
}
It will some times work synchronously (if the result is cached) or other times async when it's not. Ignore that it's different things (promise vs plain value) - there are subtle things that can lead to both paths not being equal in terms of the execution.
I wrote some more on the inequalities in this answer of mine.
Overall, async execution is a mine field with non-obvious footguns. Forcing async executions to really be async prevents some of those footguns from firing.
 
 
1 hour later…
4:00 PM
Hi Guys Question for you guys I am looping all the rows in a html using document.getElementById and I wanted to find a hidden field in each row
 
As in <input type="hidden" />?
 
for (var i = 0; i < rowLength; i += 1) {
    var row = table.rows[i];
    let hfId = row.find("input[name='hfId']").val()
    let radioChecked = `input-${hfId}input:radio:checked`;
}
 
@Jefferson Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
 
Yes input type hidden
 
row.querySelector("input[type='hidden']")
 
4:05 PM
	<tr><input type="hidden" id="hfId" name="hfId" value="916"><td>a</td><td><input name="input-916" type="radio" value="912"></td><td><input name="input-916" type="radio" value="913"></td><td><input name="input-916" type="radio" value="914"></td></tr>
 
If you want to find multiple, then use .querySelectorAll(). It gives you a collection of them.
Wait, are you using jQuery?
Then it's going to be row.find("input[type='hidden']")
 
I tried row.find but that didnt work
 var table = document.getElementById('Grid');
    var rowLength = table.rows.length;

    for (var i = 0; i < rowLength; i += 1) {
        var row = table.rows[i];
 
Then, it's probably not jQuery. I wasn't sure what table.rows[i] is but you used .find() with it which is a jQuery method.
However, I suspect it's just plain DOM node, so use querySelector in that case.
@Jefferson Yep, that's plain JS - not jQuery.
 
can I skip the th row?
and just loop the td rows
 
Yes: table.querySelectorAll("tr")
 
4:09 PM
Uncaught TypeError: row.find is not a function
 
Also possible with the DOM API, but let me check what was the correct syntax
 
that is the error I get with row.find
 
@Jefferson As I said - you need querySelector() - .find() is a jQuery method.
 
can I do it on the row
row.querySelector(input[type='hidden'])
 
You need extra quotes row.querySelector("input[type='hidden']")
 
4:23 PM
posted on January 26, 2023 by Ben Mason

Hi everyone! We've just released Chrome Dev 111 (111.0.5557.0) for Android. It's now available on Google Play. You can see a partial list of the changes in the Git log. For details on new features, check out the Chromium blog, and for details on web platform updates, check here. If you find a new issue, please let us know by filing a bug. Harry Souders Google Chrome

 
4:40 PM
Thanks VLAZ would I be able to do something like this too row.querySelector(input[name=512:checked).value;
I want to check if any of the checkbox in that row are checked and to get the value
Uncaught DOMException: Failed to execute 'querySelector' on 'Element': 'input[name=916:checked' is not a valid selector.
 
5:01 PM
is it possible to prevent entering string in input filed , with yup validation
I know it's possible to inform the user, Hey , only numbers are allowed
but what's about more advanced validation
 
5:48 PM
If people like to snipe a bounty
3
Q: Npm install being slow and lots of "cache miss" after nearly every library

paul23While everything seems to work on my local computer; Whenever I run nodejs inside a docker (docker run node:18) and I clone a project, type npm install to get all libraries and work with them, it is really slow. Like 10 seconds slow. While it works quickly after this initial bump I also notice th...

 
 
2 hours later…
8:08 PM
Is there a way to check for null in this logic
 let Id = row.querySelector('input[type="radio"]:checked').value;
if the user has nothing check for the row I get null error
 
8:52 PM
yes
!!mdn null safety
 

« first day (4485 days earlier)      last day (456 days later) »