rightjs/rightjs-core — pull request #17 by jakubpawlowicz (2011-10-12 14:13:41+00:00)
Title: Fixing two issues related to Element#set and Element#erase

Problem #1:

Element#set does not update attribute's value (via setAttribute) when called for the second time, which affects CSS queries. I wasn't sure if it's save to remove line #28 in commons.js so instead added checking for attribute's presence in some dummy Element.
This could be a performance bottleneck as dummy element is created each time Element#set is called. Please feel free to suggest alternative solution.

Problem #2:
When erasing custom attribute via Element#erase it's removed via removeAttribute method but it's still accessible via native Element object as it's set that way in line #31 of Element#set.