Earlier quoted context omitted.
It's useful for statements like "Firefox 2.0 got 82/100 on the Acid3 test" to have truth-values that don't change over time. The Acid3 test is an important part of the history of the Web, and rewriting history is repugnant.
I meant why was it ever like that?
SerenityOS Browser now passes the Acid3 test
171–178 of 178 posts
Re: SerenityOS Browser now passes the Acid3 test
#172Earlier quoted context omitted.
You aren't implementing innerText, you're implementing textContent. Consider the HTML a c d e f . Using textContent results in "acdef", while innerText results in "acd\ne\nf". Implementing textContent is easy: function getText(node, returnArray){ const a = Array.prototype.map.call(node.childNodes, e=>e.nodeType==3?e.data:getText(e, true)) return returnArray?a:a.flat(Infinity).join("") } Which can be golfed down to le…
Very nice! And thank you for the correction about innerText. Still, I think that let getText = n => n.text + n.getchildren().map(getText).join('') + n.tail is nicer than let getText=(n,f=(n,a)=>[].map.call(n.childNodes,e=>e.nodeType==3?e.data:f(e,1)))=>f(n,f).flat(1e333).join("") and not just because it's less strokes.
let getText = n =>[].map.call(n.childNodes,e => e.nodeType == 3 ? e.data : getText(e)).join("")Re: SerenityOS Browser now passes the Acid3 test
#173Earlier quoted context omitted.
Very nice! And thank you for the correction about innerText. Still, I think that let getText = n => n.text + n.getchildren().map(getText).join('') + n.tail is nicer than let getText=(n,f=(n,a)=>[].map.call(n.childNodes,e=>e.nodeType==3?e.data:f(e,1)))=>f(n,f).flat(1e333).join("") and not just because it's less strokes.
Most of the reason it's more complicated is because I made it return arrays when recursing and only join at the end because that probably doesn't need as many allocations. The rest of the complication is because the DOM has separate text nodes and the library you're using doesn't seem to. (Oh, and also NodeLists don't have .map so we use the .map from the array prototype) Here's a non-optimized version: let getText =…
Re: SerenityOS Browser now passes the Acid3 test
#174Earlier quoted context omitted.
Try Ultralight web engine or K-Meleon on Goanna, they are really lightweight.
How much memory do they need to load this discussion thread page?
Re: SerenityOS Browser now passes the Acid3 test
#175Re: SerenityOS Browser now passes the Acid3 test
#176Earlier quoted context omitted.
How much memory do they need to load this discussion thread page?
K-Meleon uses just 58.9 MB of RAM: https://i.postimg.cc/Jz1cy8tG/K-Meleon.png
Basically that's the same memory usage as Blink, WebKit, or Gecko.
Re: SerenityOS Browser now passes the Acid3 test
#177Re: SerenityOS Browser now passes the Acid3 test
#178Earlier quoted context omitted.
> The point is that a lot of sites out there don't need anything more than the web tech of 2 decades ago. With more people being aware of that and using browsers like this, the Google monopoly may weaken. I always thought this was a way to get out of this, that agrees with your vision. First you'll need a powerful force to take back control on defining web standards. This new web standard would be a very simplistic o…
Gemini is one of such simplistic standards.
So i don't think Gemini is "it" yet, but at least i liked the audacity and the way of thinking, its on the right direction and actually it should be people like Tim-berners-lee that should actually be leading this, but unfortunately they are lost..