dom icon indicating copy to clipboard operation
dom copied to clipboard

Define maximum length and handling of CharacterData nodes

Open annevk opened this issue 9 months ago • 2 comments

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 253 − 1.

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

cc @rniwa @smaug---- @mfreed7

annevk avatar Jan 24 '25 08:01 annevk