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

#1223@patch: Relax MutationObserver.observe check for options argument. #1224

Conversation

romansp
Copy link
Contributor

@romansp romansp commented Jan 18, 2024

Fixes #1223 to better match DOM Standard.

Also added additional checks. All these throw TypeError in Chrome:

  • { attributes: false, attributeOldValue: true }
  • { attributes: false, attributeFilter: ['class'] }
  • { characterData: false, characterDataOldValue: true }

…options` argument. Throw `TypeError` instead of `DOMException` when validation fails.
@romansp romansp force-pushed the task/1223-mutation-observer-observe-options-validation branch from 9279da5 to 96b5ac4 Compare January 18, 2024 21:38
@jajedidiah
Copy link

Screen Shot 2024-02-13 at 10 59 03 PM
@romansp any idea/timeline when this will be merged to master, ty

@romansp
Copy link
Contributor Author

romansp commented Feb 13, 2024

@jajedidiah Unfortunately don't have an answer to that, awaiting for review from @capricorn86.

Copy link
Owner

@capricorn86 capricorn86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @romansp! 🌟

@capricorn86 capricorn86 merged commit d5bbc7c into capricorn86:master Feb 26, 2024
3 checks passed
@romansp romansp deleted the task/1223-mutation-observer-observe-options-validation branch February 27, 2024 10:09
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.

MutationObserver.observe check for options argument is too strict
3 participants