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

Problems with Elements class array methods updating the DOM #2100

Open
821938089 opened this issue Jan 10, 2024 · 0 comments
Open

Problems with Elements class array methods updating the DOM #2100

821938089 opened this issue Jan 10, 2024 · 0 comments

Comments

@821938089
Copy link

Since 1.17.1 the array method of the Elements class will update the DOM, this behavior is not what I expected and could potentially cause some problems (e.g. accidentally breaking the DOM).

To be honest, I don't think modifying arrays should update the DOM, this behavior seems counter-intuitive to me.

If this cannot be changed back, I suggest adding an ElementList class, which is equivalent to the previous Elements class.
The inheritance could be ArrayList -> ElementList -> Elements.
The two classes provide a method to convert between them.

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

No branches or pull requests

1 participant