getArgFormElements: Filter for eliminating form elements

getArgFormElementsR Documentation

Filter for eliminating form elements

Description

This function is used when constructing the argument list when creating a function to represent the HTML form. It filters out the HTMLFormElement objects from the form description in which we have no interest. This happens when we are creating the argument list and creating the data for the form submission. Basically, this function, by default, discards the user interface components used to submit or reset the form rather than set values for the submission.

Usage

getArgFormElements(desc, targetClasses = c("HTMLSubmitElement", "HTMLResetElement", "HTMLImageElement", "HTMLHiddenElement"))

Arguments

desc

an HTMLFormDescription object or its elements.

targetClasses

the collection of class names that we want to omit.

Value

The subset of the HTMLFormDescription elements that do not inherit from the specified targetClasses.

Author(s)

Duncan Temple Lang <duncan@wald.ucdavis.edu>


omegahat/RHTMLForms documentation built on Nov. 29, 2023, 12:36 a.m.