What does #Document mean?

Asked

Viewed 75 times

2

Good evening guys, I am analyzing a source code to parse and I came across an excerpt of the code in which appears a #Document but never seen it in my life, I gave a Google here but I found nothing referent. Someone knows what this is?

inserir a descrição da imagem aqui

1 answer

2


This #document is a "virtual element", that is, it is a specific way your browser indicates that it is part of a DOM (incorporated) different. It is not possible to use or consult it, for the "virtual element" does not exist as part of DOM of the code.

In general summary the #document doesn’t really mean anything!

  • When you say I can’t consult you, does that mean I can’t parse into the html that’s inside that virtual element? I’m trying to extract using Jsoup, could you give me some hint?

  • @Luke exactly, you can’t see it and use it anyway, it was inserted there somehow, maybe by an iframe, but I can’t say because I don’t have the structure of the actual site.

  • Can I enter the structure to see if you can give me any more tips? Apparently they used iframe anyway.

  • Power you can, but the operation in the domain is different from the code copied and pasted here, so it doesn’t do any good. Maybe if I can access this yes, running in the original domain of to say if you have any solution or not.

  • The link to the page would be this HERE. The structure consists of an HTML -> IFRAME -> #Document -> HTML.

  • I was able to access the part I needed here via Jsoup, however, it is inside a javascript which will make it difficult to work when executing the selections. I’m trying here. Hugs and thanks for the help.

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.