Some of the classes that we have in html/ are storing the attribute's value to check if it has changed. If we had a way of getting the old value, we make better memory / speed trade-offs in those cases.
This code has been refactored.