How can i get attribute from xpath?

How does Quora use the routing attribute in their anchor tags?

  • Most links on Quora have a 'routing' attribute that shows the type of item the link is to (question, topic, etc), and the item's id. I'd guess that Quora uses that attribute to serve links faster. How does Quora get that info on the server? Or, do they bind a click event to the anchor tag, and do some processing on the client side? i.e. <a class="question_link" href="/Who-are-good-startup-lawyers-in-digital-health" routing="q://question/(61038)" id="[...]_link" target="_blank">

  • Answer:

    I'm guessing here but the routing attribute could be a URL that is understood by Quora's mobile app which may register a custom URL scheme

Haran Shivanan at Quora Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.