-
Notifications
You must be signed in to change notification settings - Fork 6
feat: With maskAllText
, mask the attributes: placeholder
, title
, aria-label
#40
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
Conversation
60d7d40
to
326ab31
Compare
e69e2aa
to
eec6a2f
Compare
maskAllText
, mask the attributes: placeholder
, title
, aria-label
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@@ -6,50 +6,50 @@ export declare enum NodeType { | |||
CDATA = 4, | |||
Comment = 5 | |||
} | |||
export declare type documentNode = { | |||
export type documentNode = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No action required, just curious: Why remove the declare
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this was auto generated? I'll undo and see what happens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah not sure what happened before, but export type
is the correct statement (it also watches others in the file for type
).
Similar to `maskAllInputs`, this option will mask all text nodes (except those defined by `unmaskSelector`)
Mask the title and placeholder attributes when `maskAllText` is enabled.
If textarea has a child string content, it will get duplicated as a `value` attribute. Masking by text vs input can cause these two values to diverge (i.e. only one is masked). On playback, we remove duplicate textContent for textareas, which means we could show double textarea values: one masked, one unmasked.
f7c1e66
to
736070a
Compare
If
maskAllText
is enabled, let's mask some specific attributes:placeholder
,title
, andaria-label
. I've opted to just hardcode these instead of adding them as options for now since they are only tied tomaskAllText
.Depends on #35