xowiki::test::get_content (public)

 xowiki::test::get_content d

Defined in packages/xowiki/tcl/test/test-procs.tcl

Retrieve form a result dict of a request just the xowiki content part, denoted by the div with class 'xowiki-content' (i.e., leave out the header and footer).

Parameters:
d (required)
Returns:
HTML with xowiki content or empty, iof not there

Testcases:
create_form_with_form_instance
Source code:
        acs::test::dom_html root [dict get $d body] {
            set xowiki_content [$root selectNodes {//div[@class='xowiki-content']}]
            if {$xowiki_content ne ""} {
                set xowiki_content [$xowiki_content asHTML]
            }
        }
        return $xowiki_content
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: