billconan
14th March 2009, 20:01
Hello guys,
I want to implement a feature in my program that captures the HTML code under where my mouse clicked. for example, if i loaded a webpage, and then i click my mouse on a picture on that page, i can capture the HTML of that picture: <img src="..." />, and if i press on a video, i can get an <embed ...> tag.
I'm just wondering if i can get this information from the webkit render. given a position on the rendered web page, can the webkit tell me which line of the HTML code was drawn at that place?
I also want to know that if i specify one line of HTML of a web page, can webkits tell me where that line of HTML will be rendered? and what size it would be?
Thank you.
I want to implement a feature in my program that captures the HTML code under where my mouse clicked. for example, if i loaded a webpage, and then i click my mouse on a picture on that page, i can capture the HTML of that picture: <img src="..." />, and if i press on a video, i can get an <embed ...> tag.
I'm just wondering if i can get this information from the webkit render. given a position on the rendered web page, can the webkit tell me which line of the HTML code was drawn at that place?
I also want to know that if i specify one line of HTML of a web page, can webkits tell me where that line of HTML will be rendered? and what size it would be?
Thank you.