I am working on a window application for my website. Right now, I have every single window configured as a body of a body. I am adding new windows, literally adding the appropriate code to the end of the body element and deleting them, removing this div. (I am using jQuery for the underlying JavaScript architecture.)
I found that for each window I want to save some values ββthat are not used directly. Let's say I maximize the window, I would like to preserve its previous position and size, so that when I do not maximize it, it will return to its previous position, and not just to a random one. So my real question is whether it will be legal to create custom CSS attributes (knowing that the browser will ignore them) for the sole purpose of storing such information based on div-divs? Or will it be illegal and should I look at another alternative?
Of course, I am familiar with the methods of storing all of this in an array so that the system can work with it blindly, but it is so cute and prone to errors and things, and it would still be a little difficult to work with.
thanks
source share