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
| Name | Type | Access | Description |
|---|---|---|---|
current_document | "Document" | Read | Gets the current document. |
lifecycle_state | str | Read | Gets the lifecycle state. |
cleanup_marks | list[str] | Read | Gets the cleanup marks. |
navigation_epoch | int | Read | Gets the navigation epoch. |
active_navigation_token | int | None | Read | Gets the active navigation token. |
dynamic_markup_intents | tuple[str, ...] | Read | Recorded Document dynamic-markup intents routed via lifecycle owner. |
Methods
| Signature | Description |
|---|---|
__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 | None | Resolve an iframe embedded document through browsing-context ownership. |
iframe_content_window_for(iframe_element: object) → object | None | Resolve an iframe embedded window through browsing-context ownership. |
begin_navigation() → bool | Calls 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() → bool | Calls cancel_navigation on this BrowsingContext instance. |