Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define maximum length and handling of CharacterData nodes #1351

Open
annevk opened this issue Jan 24, 2025 · 0 comments
Open

Define maximum length and handling of CharacterData nodes #1351

annevk opened this issue Jan 24, 2025 · 0 comments

Comments

@annevk
Copy link
Member

annevk commented Jan 24, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant