Skip to content

Ensure setAttribute does not cause stack overflow #163

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Ensure setAttribute does not cause stack overflow #163

wants to merge 1 commit into from

Conversation

anywhichway
Copy link

Line 394: the use of setAttribute without first checking to see if the attribute already has the value desired can cause infinite recursion and stack overflow if cell.js is used with over libraries that either re-define setAttribute or elevate attributes to DOM node properties with getters and setters. Guarding the call to setAttribute with getAttribute eliminates this type of problem. The issue was uncovered when working with the onsen ui framework.

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

Successfully merging this pull request may close these issues.

1 participant