get-idents-from-html.pl - gather names of form fields from a set of html files
get-idents-from-html.pl - a script to gather a names and ids of elements used inside a set of html files.
get-idents-from-html.pl [ --for-ids=names-of-elements-to-take-ID-from ] [ --for-names=names-of-elements-to-take-NAME-from ] [ -i ] [ --runat client|any|server ] [ -l=file-name-with-list-of-src-files ] [ --do-not-merge ] destfile srchtmlfiles..
The srchtmlfiles processed needn't be valid HTML - they can even be XML files, no balancing of tags and allowance of containment is checked. The names of elements and attributes can be in any case, even mixed case is OK.
By default, values of all attributes with name NAME (except A) are extracted; also values of all attributes with name ID are extracted too. It's possible to specify the exact list of names (as a comma-separated list specified as a single string) of elements from which to extract values of NAME attribute using commandline option --for-names, and names of elements from which to extract values of ID attribute using commandline option --for-ids. Values of corresponding attributes not looking like identifier are ignored.
It's possible ignore the case of extracted symbol names, by adding option -i - in this case encountering e.g. form fields with ids E1 and e1 will be result in a single line e1 to be output to the resultant file.
By default, elements with attribute runat with value server (used by ASP and ASP.NET for marking server-side objects) are ignored. It's also possible to request to also analyze them, or to analyze only elements with runat=server by the use of --runat commandline option.