acs::test::dom_html (public)

 acs::test::dom_html var html body

Defined in packages/acs-automated-testing/tcl/aa-test-procs.tcl

Parses HTML into a tDOM object and executes some code.

Parameters:
var (required)
the variable name that body can refer to as documentElement of the document (e.g. "root").
html (required)
the markup to be parsed.
body (required)
a Tcl script executed in the caller scope that can assume the document to be parsed and be available in "var".

Testcases:
markup_parsing, create_folder_with_page, link_tests, create_form_with_form_instance, create_form_with_numeric, form_validate, nested_self_references
Source code:
        upvar $var root
        try {
            dom parse -html -- $html doc
        } on error {errorMsg} {
            ns_log error "Failed to parse the following HTML text with message: $errorMsg\n$html"
        }
        $doc documentElement root
        uplevel 1 $body
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: