diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2013-10-05 11:26:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2013-10-05 11:26:38 -0700 |
commit | e022ebd1f2b414837b60f434e6db26e2c999207a (patch) | |
tree | 69f4b0da06f9b44642bac62906cddcd1005e8924 /wl.h | |
parent | 33c2ad9765e7dc34b9c645b304cfd51524056d9e (diff) | |
download | hc-e022ebd1f2b414837b60f434e6db26e2c999207a.tar.gz hc-e022ebd1f2b414837b60f434e6db26e2c999207a.tar.bz2 hc-e022ebd1f2b414837b60f434e6db26e2c999207a.zip |
Ground work for supporting attribute filtering.
Diffstat (limited to 'wl.h')
-rw-r--r-- | wl.h | 768 |
1 files changed, 768 insertions, 0 deletions
@@ -0,0 +1,768 @@ +static int allowed_at_a_spec[] = { + tok_at_charset, + tok_at_class, + tok_at_coords, + tok_at_dir, + tok_at_href, + tok_at_hreflang, + tok_at_id, + tok_at_lang, + tok_at_name, + tok_at_style, + tok_at_title, + tok_at_type, + tok_eof +}; + +static int allowed_at_abbr_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_acronym_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_address_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_b_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_basefont_spec[] = { + tok_at_color, + tok_at_face, + tok_at_id, + tok_at_size, + tok_eof +}; + +static int allowed_at_bdo_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_big_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_blockquote_spec[] = { + tok_at_cite, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_br_spec[] = { + tok_at_class, + tok_at_clear, + tok_at_id, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_caption_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_center_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_cite_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_code_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_col_spec[] = { + tok_at_align, + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_span, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_at_width, + tok_eof +}; + +static int allowed_at_colgroup_spec[] = { + tok_at_align, + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_span, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_at_width, + tok_eof +}; + +static int allowed_at_dd_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_del_spec[] = { + tok_at_class, + tok_at_datetime, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_dfn_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_dir_spec[] = { + tok_at_class, + tok_at_compact, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_div_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_dl_spec[] = { + tok_at_class, + tok_at_compact, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_dt_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_em_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_font_spec[] = { + tok_at_class, + tok_at_color, + tok_at_dir, + tok_at_face, + tok_at_id, + tok_at_lang, + tok_at_size, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_h1_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_h2_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_h3_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_h4_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_h5_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_h6_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_hr_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_size, + tok_at_style, + tok_at_title, + tok_at_width, + tok_eof +}; + +static int allowed_at_i_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_img_spec[] = { + tok_at_align, + tok_at_alt, + tok_at_border, + tok_at_class, + tok_at_dir, + tok_at_height, + tok_at_id, + tok_at_lang, + tok_at_longdesc, + tok_at_name, + tok_at_src, + tok_at_style, + tok_at_title, + tok_at_vspace, + tok_at_width, + tok_eof +}; + +static int allowed_at_ins_spec[] = { + tok_at_class, + tok_at_datetime, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_kbd_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_li_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_at_type, + tok_at_value, + tok_eof +}; + +static int allowed_at_ol_spec[] = { + tok_at_class, + tok_at_compact, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_start, + tok_at_style, + tok_at_title, + tok_at_type, + tok_eof +}; + +static int allowed_at_optgroup_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_p_spec[] = { + tok_at_align, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_pre_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_at_width, + tok_eof +}; + +static int allowed_at_q_spec[] = { + tok_at_cite, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_samp_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_small_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_span_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_strike_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_strong_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_style_spec[] = { + tok_at_dir, + tok_at_lang, + tok_at_media, + tok_at_style, + tok_at_title, + tok_at_type, + tok_at_title, + tok_eof +}; + +static int allowed_at_sub_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_sup_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_table_spec[] = { + tok_at_align, + tok_at_bgcolor, + tok_at_cellpadding, + tok_at_cellspacing, + tok_at_class, + tok_at_dir, + tok_at_frame, + tok_at_id, + tok_at_lang, + tok_at_rules, + tok_at_style, + tok_at_summary, + tok_at_title, + tok_at_width, + tok_eof +}; + +static int allowed_at_tbody_spec[] = { + tok_at_align, + tok_at_border, + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_eof +}; + +static int allowed_at_td_spec[] = { + tok_at_abbr, + tok_at_align, + tok_at_axis, + tok_at_bgcolor, + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_colspan, + tok_at_dir, + tok_at_headers, + tok_at_height, + tok_at_id, + tok_at_lang, + tok_at_rowspan, + tok_at_scope, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_at_width, + tok_eof +}; + +static int allowed_at_tfoot_spec[] = { + tok_at_align, + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_eof +}; + +static int allowed_at_th_spec[] = { + tok_at_abbr, + tok_at_align, + tok_at_axis, + tok_at_bgcolor, + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_colspan, + tok_at_dir, + tok_at_headers, + tok_at_height, + tok_at_id, + tok_at_lang, + tok_at_rowspan, + tok_at_scope, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_at_width, + tok_eof +}; + +static int allowed_at_thead_spec[] = { + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_eof +}; + +static int allowed_at_tr_spec[] = { + tok_at_abbr, + tok_at_bgcolor, + tok_at_char, + tok_at_charoff, + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_at_valign, + tok_eof +}; + +static int allowed_at_tt_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_u_spec[] = { + tok_at_class, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_eof +}; + +static int allowed_at_ul_spec[] = { + tok_at_class, + tok_at_compact, + tok_at_dir, + tok_at_id, + tok_at_lang, + tok_at_style, + tok_at_title, + tok_at_type, + tok_eof +}; + +allowed_el_t allowed_el_spec[] = { + { tok_el_a, allowed_at_a_spec }, + { tok_el_abbr, allowed_at_abbr_spec }, + { tok_el_acronym, allowed_at_acronym_spec }, + { tok_el_address, allowed_at_address_spec }, + { tok_el_b, allowed_at_b_spec }, + { tok_el_basefont, allowed_at_basefont_spec }, + { tok_el_bdo, allowed_at_bdo_spec }, + { tok_el_big, allowed_at_big_spec }, + { tok_el_blockquote, allowed_at_blockquote_spec }, + { tok_el_br, allowed_at_br_spec }, + { tok_el_caption, allowed_at_caption_spec }, + { tok_el_center, allowed_at_center_spec }, + { tok_el_cite, allowed_at_cite_spec }, + { tok_el_code, allowed_at_code_spec }, + { tok_el_col, allowed_at_col_spec }, + { tok_el_colgroup, allowed_at_colgroup_spec }, + { tok_el_dd, allowed_at_dd_spec }, + { tok_el_del, allowed_at_del_spec }, + { tok_el_dfn, allowed_at_dfn_spec }, + { tok_el_dir, allowed_at_dir_spec }, + { tok_el_div, allowed_at_div_spec }, + { tok_el_dl, allowed_at_dl_spec }, + { tok_el_dt, allowed_at_dt_spec }, + { tok_el_em, allowed_at_em_spec }, + { tok_el_font, allowed_at_font_spec }, + { tok_el_h1, allowed_at_h1_spec }, + { tok_el_h2, allowed_at_h2_spec }, + { tok_el_h3, allowed_at_h3_spec }, + { tok_el_h4, allowed_at_h4_spec }, + { tok_el_h5, allowed_at_h5_spec }, + { tok_el_h6, allowed_at_h6_spec }, + { tok_el_hr, allowed_at_hr_spec }, + { tok_el_i, allowed_at_i_spec }, + { tok_el_img, allowed_at_img_spec }, + { tok_el_ins, allowed_at_ins_spec }, + { tok_el_kbd, allowed_at_kbd_spec }, + { tok_el_li, allowed_at_li_spec }, + { tok_el_ol, allowed_at_ol_spec }, + { tok_el_optgroup, allowed_at_optgroup_spec }, + { tok_el_p, allowed_at_p_spec }, + { tok_el_pre, allowed_at_pre_spec }, + { tok_el_q, allowed_at_q_spec }, + { tok_el_samp, allowed_at_samp_spec }, + { tok_el_small, allowed_at_small_spec }, + { tok_el_span, allowed_at_span_spec }, + { tok_el_strike, allowed_at_strike_spec }, + { tok_el_strong, allowed_at_strong_spec }, + { tok_el_style, allowed_at_style_spec }, + { tok_el_sub, allowed_at_sub_spec }, + { tok_el_sup, allowed_at_sup_spec }, + { tok_el_table, allowed_at_table_spec }, + { tok_el_tbody, allowed_at_tbody_spec }, + { tok_el_td, allowed_at_td_spec }, + { tok_el_tfoot, allowed_at_tfoot_spec }, + { tok_el_th, allowed_at_th_spec }, + { tok_el_thead, allowed_at_thead_spec }, + { tok_el_tr, allowed_at_tr_spec }, + { tok_el_tt, allowed_at_tt_spec }, + { tok_el_u, allowed_at_u_spec }, + { tok_el_ul, allowed_at_ul_spec }, + { tok_eof, 0 } +}; |