Code Monkey home page Code Monkey logo

Comments (2)

Yuyz0112 avatar Yuyz0112 commented on July 21, 2024
  1. Form element
  • password type input should not be recorded
  • customize ignore form element should not be recorded
  1. DOM
  • customize ignore element and its children nodes should not be recorded

We may have two approaches to customize ignore element.

One is to ignore certain class name/data attribute, such as .rr-ignore, and users could add this class name to the element they do not want to record.

Another one is to add an ignore class name option like ['.a', '#b', '[data-c="true"]'], which was already used in users' apps.

The first one needs users to update their source code when the second one may cause extra complexity and potential performance issue.

Personally, I tend to implement the first one because most apps do not already have some markups for privacy usage. And if we provided the second solution, users may define a class name like .ignore which also need to update the source code.

Any feedback is welcomed.

from rrweb.

Yuyz0112 avatar Yuyz0112 commented on July 21, 2024
  1. An element with the class name .rr-block will not be recorded. Instead, it will replay as a placeholder with the same dimension.
  2. An element with the class name .rr-ignore will not record the input events.
  3. input[type="password"] will be ignored as default.

from rrweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.