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

Allow blacklisting nodes #9

Merged
merged 1 commit into from
Nov 20, 2018
Merged

Allow blacklisting nodes #9

merged 1 commit into from
Nov 20, 2018

Conversation

tryggvigy
Copy link
Owner

Fix #7

Adds blacklistedNodeNames option. With this option it's possible to pass an array of Node.nodeName strings that will be ignored by the dom tree walker.

This is useful for skipping <style>, <text> svg nodes or other nodes that potentially doesn't make sense to apply pseudo localization to.

<style> is skipped by default. I don't see a case where pseudo localizing style nodes makes sense.

@tryggvigy tryggvigy merged commit b719808 into master Nov 20, 2018
@tryggvigy tryggvigy deleted the blacklist-node-names branch November 20, 2018 22:05
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