When loading the website : https://old.lemmy.world/ each "post" class member, that contains an "expando" member will define the expando class name as "expando " (notice the empty space at end of string).
e.g. :
But after the image is clicked on by the user, and closed again, the class name becomes "expando" (no more white space)
e.g :
I noticed this when creating a chrome extension that was interacting with the DOM. For now I'm using an OR condition for expando with and without space, but that doesn't seem right.
When loading the website : https://old.lemmy.world/ each "post" class member, that contains an "expando" member will define the expando class name as "expando " (notice the empty space at end of string).
e.g. :
But after the image is clicked on by the user, and closed again, the class name becomes "expando" (no more white space)
e.g :
I noticed this when creating a chrome extension that was interacting with the DOM. For now I'm using an OR condition for expando with and without space, but that doesn't seem right.