Skip to content

Add example tests for "load_html_string()" and "set_content()" #882

@mdmintz

Description

@mdmintz

Add example tests for load_html_string(html_string) and set_content(html_string).

They are nearly the same:

  • load_html_string(html_string) will first open data:text/html, in the web browser, then replace the existing html with the html_string.
  • set_content(html_string) will immediately replace the existing html on the current page with the new html_string without leaving the existing page.

Both methods have the optional new_page arg, which can be changed so that both methods do the exact same thing.

Metadata

Metadata

Assignees

Labels

testsThis involves test updates or new tests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions