Commit 79a56edbc0cb4af4db47d214427af12715334096

Authored by Cédric RICARD
1 parent 953f2596

Bug on text() html tag : couldn't add an id.

Showing 1 changed file with 6 additions and 2 deletions   Show diff stats
calexium_lib/web/CXM_making_a_web_site.anubis
@@ -2819,7 +2819,9 @@ define List(Text_Option) @@ -2819,7 +2819,9 @@ define List(Text_Option)
2819 { 2819 {
2820 [] then [], 2820 [] then [],
2821 [h . t ] then 2821 [h . t ] then
2822 - if h is class(class) then 2822 + if h is class(_) then
  2823 + get_text_options(t)
  2824 + else if h is id(_) then
2823 get_text_options(t) 2825 get_text_options(t)
2824 else 2826 else
2825 [ h . get_text_options(t) ] 2827 [ h . get_text_options(t) ]
@@ -2841,7 +2843,9 @@ define List(Text_Option) @@ -2841,7 +2843,9 @@ define List(Text_Option)
2841 [h . t ] then 2843 [h . t ] then
2842 2844
2843 2845
2844 - if h is class(class) then 2846 + if h is class(_) then
  2847 + [ h . get_css_class(t) ]
  2848 + else if h is id(_) then
2845 [ h . get_css_class(t) ] 2849 [ h . get_css_class(t) ]
2846 else 2850 else
2847 get_css_class(t) 2851 get_css_class(t)