[whatwg/dom] Define maximum length and handling of CharacterData nodes (Issue #1351)

Currently we pretend that all `CharacterData` nodes (`Text`, `CDATASection`, `ProcessingInstruction`, and `Comment`) can have infinite length. In practice however it seems the upper limit has to be JavaScript's `String`'s maximum length, which is 2<sup>53</sup> &minus; 1.

Should we standardize on that and attempt to deal with the consequences for `wholeText`, `normalize()`, etc?

cc @rniwa @smaug---- @mfreed7 

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

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

Received on Friday, 24 January 2025 08:51:56 UTC