Hello. The task is to parse the page, but before taking its DOM, you need to modify it somewhat. The fact is that on the page all the links are wrapped with the <span>
and only after targeting this element they are converted into the <a>
tag. The code that solves this problem looks something like this:
$("tr > td > div > div.bus-point > div > span").mouseenter().mouseleave();
Those. first I need to get to the page, execute this command and only after that pick up the DOM page. Tell me, is it possible at all, and if possible, how to implement it? Thanks in advance to all responded.
<span>
, where the data for the<a>
tag come from. For example, where doeshref
come from? - Stepan Kasyanenkospan
and its attributes and convert it into a link on its side? Look at the same JS as the link is converted there. Or is it problematic to open the console and browser resources? - Alexey Shimanskydata-a
attribute from them, it contains the linkhref
<a> tag, which <span> is converted in the browser. - Stepan Kasyanenko