The point is what she is arrayed in. The white robe or adornment is always a picture of perfect righteousness and that is the righteousness of Christ. Our own righteousness is as filthy rags...Isaiah 64:6.This is the text:
8 And to her it was granted to be arrayed in fine linen, clean and bright, for the fine linen is the righteous acts of the saints.
Oops! This is the NKJV. Sorry wrong filter.
BTW the KJV version does not change the meaning of the verse.
"Her" is still the pronoun and the "of" still refers to her righteousness.
Are you a KJV only or just if it fits the issue at hand?
Salvation is not by works that we have done. Titus 3:5...Not by works of righteousness which we have done, but according to His mercy He saved us...