I was trying to understand this sentence:
それは聞いたことのない少女の声であった。
And I found this answer.
The answerer changed ことのある to ことがある, stating that "の is used as a subject marker in some cases."
Does this mean I can treat ことのある and ことがある as roughly the same? (の and が are being used to identify a subject)?