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

feat: attribute whitelist #2

Merged
merged 1 commit into from
Aug 26, 2019
Merged

feat: attribute whitelist #2

merged 1 commit into from
Aug 26, 2019

Conversation

DylanPiercey
Copy link
Member

Description

Switches the attribute preserving mechanism to use a whitelist for the html namespace and a blacklist for other namespaces.

Motivation and Context

The previous implementation of checking for computed style changes caused by each attribute caused too many false negatives. It also did not properly handle stateful properties such as input value. This new solutions handles all known attributes that effect visibility and instead checks for their property to grab the most current value.

Checklist:

  • I have updated/added documentation affected by my changes.
  • I have added tests to cover my changes.

@DylanPiercey DylanPiercey force-pushed the attribute-whitelist branch 3 times, most recently from 064bd72 to bd5e2ca Compare August 26, 2019 17:52
feat: sort attributes and css properties

BREAKING CHANGE: snapshot output has changed
@DylanPiercey DylanPiercey merged commit cb77746 into master Aug 26, 2019
@DylanPiercey DylanPiercey deleted the attribute-whitelist branch August 19, 2022 21:32
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