BrowsingContext

BrowsingContext

Overview

BrowsingContext is a class in Aspose.Html FOSS for Python.

Internal owner of navigation lifecycle/document state.

This class provides 11 methods for working with BrowsingContext objects in Python programs. Available methods include: __init__, accept_response, attach_document, begin_navigation, cancel_navigation, complete_non_html, iframe_content_document_for, iframe_content_window_for, mark_complete, mark_parsing, record_dynamic_markup_intent. All public members are accessible to any Python application after installing the Aspose.Html FOSS for Python package. Properties: active_navigation_token, cleanup_marks, current_document, dynamic_markup_intents, lifecycle_state, navigation_epoch.

Properties

NameTypeAccessDescription
current_document"Document"ReadGets the current document.
lifecycle_statestrReadGets the lifecycle state.
cleanup_markslist[str]ReadGets the cleanup marks.
navigation_epochintReadGets the navigation epoch.
active_navigation_tokenint | NoneReadGets the active navigation token.
dynamic_markup_intentstuple[str, ...]ReadRecorded Document dynamic-markup intents routed via lifecycle owner.

Methods

SignatureDescription
__init__(document: "Document")Calls init(document) on this BrowsingContext instance.
record_dynamic_markup_intent(operation: str)Record dynamic-markup intent without mutating lifecycle ownership.
iframe_content_document_for(iframe_element: object)object | NoneResolve an iframe embedded document through browsing-context ownership.
iframe_content_window_for(iframe_element: object)object | NoneResolve an iframe embedded window through browsing-context ownership.
begin_navigation()boolCalls begin_navigation on this BrowsingContext instance.
accept_response()Calls accept_response on this BrowsingContext instance.
attach_document(document: "Document")Calls attach_document(document) on this BrowsingContext instance.
mark_parsing()Calls mark_parsing on this BrowsingContext instance.
mark_complete()Calls mark_complete on this BrowsingContext instance.
complete_non_html()Calls complete_non_html on this BrowsingContext instance.
cancel_navigation()boolCalls cancel_navigation on this BrowsingContext instance.

See Also