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

Use setAttribute instead of setAttributeNode #24

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

Conversation

weslien
Copy link

@weslien weslien commented Dec 1, 2021

By author (5 years ago):

In some versions of IE setAttributeNode throws the enigmatic "Member not
found" error with particular combinations of element and attribute. For
example calling setAttributeNode on a td with a colspan attr. Go figure :)

I’m not sure why sanitize uses setAttributeNode but setAttribute doesn’t
seem to do any harm, so here we are.

Update:
We have been using this fork for years now, and it seems to do little harm. Might as well send this PR so we can clean up!

In some versions of IE setAttributeNode throws the enigmatic "Member not
found" error with particular combinations of element and attribute. For
example calling setAttributeNode on a td with a colspan attr. Go figure :)

I’m not sure why sanitize uses setAttributeNode but setAttribute doesn’t
seem to do any harm, so here we are.
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