Exactly right!
And once again CONTEXT is totally ignored in the passage.
John 17:20-23
20 "My prayer is not for them alone. I pray also for those who will believe in me through their message, 21 that all of them may be one, Father, just as you are in me and I am in you. May they also be in us so that the world may believe that you have sent me. 22 I have given them the glory that you gave me, that they may be one as we are one: 23 I in them and you in me. May they be brought to complete unity to let the world know that you sent me and have loved them even as you have loved me.
NIV
Jesus in a real sense did pray for the world -- but not the world as FWers understand it! He prayed for the Gentiles who would be evangelized by the Jews and come to believe in him.
1. "Their message" = the gospel initially spread by Jewish believers obeying the Great Commission.
2. "Those who will believe" = Gentiles ("other sheep not of this fold", cf. Jn 10) scattered throughout the world.
3. Both Jewish and Gentiles believers are "in" but not "of" the world, anymore than Jesus was (v. 16).
4. "The world" in v.23 = the world of unbelievers who would learn about Christ by Christian testimony.
5. This world of unbelievers will learn that God had loved BELIEVERS, i.e. "loved THEM" - the same "them" as in v.21
6. The world of unbelievers = those OF this world. These are the devil's children for whom Christ did not pray.
Therefore, God "had loved" both Jewish and Gentile believers who were, are and will be *IN* the world but not *OF* it. Jesus does not say that the Father "sent me and have loved the world even as you have loved me". Therefore, "world" throughout Jn 17 is used in a qualified or limited sense to refer to believers "in" the world as one group, and unbelievers who "of" the world as the second group.
What is your take on v. 23 in the context of the chapter and the larger context of John's entire Gospel?