Re: [whatwg/dom] Minor textContent / string replace all optimization (Issue #1106)

> @mfreed7 https://github.com/WebKit/WebKit/blob/14c0a0df4180c23444c0c87502e96020065d0585/Source/WebCore/editing/markup.cpp#L1372-L1377.

Thanks. So no mutation observers, mutation event listeners, and no references to the text node. The last part is interesting, since a) it's hard to do in Blink, and b) I wouldn't think it mattered. I.e. events are the way this is observable, right? From the node itself, all of the attributes would look the same before/after setting the text to the same value. I wonder why that check is there.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/1106#issuecomment-1238468128
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/dom/issues/1106/1238468128@github.com>

Received on Tuesday, 6 September 2022 17:44:22 UTC