|
||||||||||||||
|
|
|||||||||||||
|
|
|||
|
|||
|
|||
|
DOM Modification | ||
|
|
|
|
|
|
Although onDocumentComplete is triggered
immediately after a page has completed loading, some web pages contain scripts
that subsequently modify the page's DOM[1],
which has the potential to cause unexpected (but not incorrect) rendering of
pages. For example, if the JavaScript
onLoad() function (which also triggers immediately after a page has completed
loading) changes images on the page, these images may not not be present in the
DOM or have completed loading (depending on the timing of the JavaScript
modification to the DOM, and network speed) at the time savePageImageToDisk
was called. |
|
|
|||
|
browser.addNetworkListener(
new NetworkAdapter() { |
||
|
|||
[1]DOM - the Document Object Model, the internal hierarchical representation of the page structure. |
|||
|
|
|
|
|
|
Copyright © JadeLiquid Software - www.jadeliquid.com |