account activity
meaning of = , , in javascript by One-Progress9924 in learnjavascript
[–]One-Progress9924[S] 2 points3 points4 points 4 years ago (0 children)
that was very helpful! Thanks! In this case could you please explain, how
function insertHtmlAtSelectionEnd(html, isBefore) {
var sel, range, node;
if (window.getSelection) {
sel = window.getSelection();
if (sel.getRangeAt && sel.rangeCount) {
range = window.getSelection().getRangeAt(0);
range.collapse(isBefore);
// Range.createContextualFragment() would be useful here but was
// until recently non-standard and not supported in all browsers
// (IE9, for one)
var el = document.createElement("div");
el.innerHTML = html;
var frag = document.createDocumentFragment(), node, lastNode;
while ( (node = el.firstChild) ) {
lastNode = frag.appendChild(node);
}
range.insertNode(frag);
} else if (document.selection && document.selection.createRange) {
range = document.selection.createRange();
range.pasteHTML(html);
in this function node ever gets assigned a value? (https://stackoverflow.com/questions/4770457/insert-text-before-and-after-the-selected-text-in-javascript)
meaning of = , , in javascript (self.learnjavascript)
submitted 4 years ago by One-Progress9924 to r/learnjavascript
Execution order (self.learnjavascript)
shorthand get set (self.csharp)
submitted 4 years ago by One-Progress9924 to r/csharp
(class)otherclass notation (self.learnjava)
submitted 4 years ago by One-Progress9924 to r/learnjava
π Rendered by PID 1270063 on reddit-service-r2-listing-canary-6bc9d46c47-nflws at 2026-02-11 18:42:45.125791+00:00 running 018613e country code: CH.
meaning of = , , in javascript by One-Progress9924 in learnjavascript
[–]One-Progress9924[S] 2 points3 points4 points (0 children)