- 17 May 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
Disregard Application Attributes during Mutations
- Updated On 17 May 2024
- 1 Minute To Read
-
Print
-
DarkLight
-
PDF
With mutation exclude attribute name, Whatfix's mutation observer monitors change in the application’s DOM (Document Object Model) but excludes certain attributes from triggering any actions or updates.
Whatfix uses mutation observer to observe changes to the DOM. Within these changes, attribute mutations refer to changes that occur to the attributes of HTML elements. For example, if the class or id of an element changes, that’s an attribute mutation. For more information on mutations and how Whatfix uses MutationObserver API, see Configure Mutation Observer.
When you enable mutation exclude attribute names, you create a list of attributes that Whatfix should ignore. Even if these attributes change, Whatfix won’t consider them mutations and won’t react to them.
By ignoring irrelevant attribute changes, Whatfix can focus on the important mutations that affect the functionality of the application. This ensures that Whatfix doesn’t react to irrelevant or minor attribute changes and can focus on more critical mutations that might affect the user’s interaction with the application.
Consider an example where you’re using Whatfix on a web application that frequently changes the color of its buttons. The color attribute (style) changes are not significant for the functionality of the Whatfix flows, so you decide to exclude them from mutation observations.
Use the following steps to disregard certain application attributes during mutations:
-
On the Whatfix Guidance dashboard, click Settings.
-
Click Advanced customisation.
-
Click Technical configuration.
-
Click Add preferences.
-
Click Smart Tip.
-
Select the Mutation Exclude Attribute Names checkbox.
-
Click Add.
-
In the Mutation Exclude Attribute Names Value field, enter the attributes you want Whatfix to disregard, as shown in the following screenshot:
-
Click Save.