- Publicity: Public Only All
html-procs.tcl
Procs to read and manipulate HTML structures
- Location:
- packages/acs-tcl/tcl/html-procs.tcl
- Created:
- 2015-09-26
- Author:
- Antonio Pisano
Procedures in this file
- util::get_node_attributes (public)
- util::html::get_form (public)
- util::html::get_form_vars (public)
- util::html::get_forms (public)
Detailed information
util::get_node_attributes (public)
util::get_node_attributes -node node
Extract attributes names and values from a tDOM node
- Switches:
- -node (required)
- tDOM node
- Returns:
- List in array get form of attribute names and values for node
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
util::html::get_form (public)
util::html::get_form -forms forms [ -id id ]
Extract form with the specified id from a structure as that coming from
util::html::get_forms
proc.
- Switches:
- -forms (required)
- Form structure
- -id (optional)
- HTML id of the form to be read. If structure contains only one form, this parameter can be omitted, otherwise the proc will throw an error.
- Returns:
- form structure
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
util::html::get_form_vars (public)
util::html::get_form_vars -form form
Read vars from a form structure as that coming out from
util::html::get_form
.
- Switches:
- -form (required)
- Form structure
- Returns:
- var specification in a form suitable for the
vars
argument of procexport_vars
.- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
util::html::get_forms (public)
util::html::get_forms -html html
Extract every form's specification from HTML supplied
- Switches:
- -html (required)
- HTML text
- Returns:
- Form specification as a nested list of lists in array get form
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.