/    Sign up×
Community /Pin to ProfileBookmark

Unable to get the document object for the main page of certain sites in Opera

We are building an opera extension in which we are trying to use the document object property (document.body.innerHTML) in order to obtain the source of the main page of a site. In most cases it provides us with the correct page source but for certain sites (ones that have multiple document layers), it doesn’t return the top most document.

For instance, for the site ([url]https://www.pcisecuritystandards.org/[/url]) we would like to source for the main page that is displayed but
once the entire page is loaded, the document property would display the source for another layer ([url]https://s7.addthis.com/static/r07/sh…rev=86981&xd=1[/url])

This perhaps has to do with how opera loads the document layers in a page. We did not face any issue with any other browser

How can we obtain the source of the main page ([url]https://www.pcisecuritystandards.org/[/url]) using the document object in Opera ?

to post a comment
JavaScript

0Be the first to comment 😎

×

Success!

Help @vijayfromzukmo spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...