- public XhtmlTextWriter (TextWriter writer)
- : this (writer, DefaultTabString)
- {
- }
-
- public XhtmlTextWriter (TextWriter writer, string tabString)
- : base (writer, tabString)
- {
- SetupCommonAttributes ();
- SetupSuppressCommonAttributes ();
- SetupElementsSpecificAttributes ();
- }
-
- void SetupHash (Hashtable hash, string [] values) {
- foreach (string str in values)
- hash.Add (str, true);
- }
-
- //
- // if you need to add a new default common attribute,
- // add the literal as a member of the DefaultCommonAttributes array
- //
- void SetupCommonAttributes ()
- {
- SetupHash (common_attrs, DefaultCommonAttributes);
- }
-
- //
- // if you need to add a new suppressed common attribute,
- // add the literal as a member of the SuppressCommonAttrs array
- //
- void SetupSuppressCommonAttributes ()
- {
- SetupHash (suppress_common_attrs, DefaultSuppressCommonAttributes);
- }
-
- //
- // I did not make them static because different instances of XhtmlTextWriter's
- // do not share the changes made to the element's attributes tables,
- // they are not read-only.
- //
- Hashtable a_attrs, base_attrs, blockquote_attrs, br_attrs, form_attrs, head_attrs;
- Hashtable html_attrs, img_attrs, input_attrs, label_attrs, li_attrs, link_attrs;
- Hashtable meta_attrs, object_attrs, ol_attrs, optgroup_attrs, option_attrs, param_attrs;
- Hashtable pre_attrs, q_attrs, select_attrs, style_attrs, table_attrs, textarea_attrs;
- Hashtable td_attrs, th_attrs, title_attrs, tr_attrs;
-
- void SetupElementsSpecificAttributes ()