Commit 63b2c11bfaef1e715919083427a83decf3a50c05

Authored by totoro
1 parent 3cd6e937

add html tag:

- select
- option
- datalist
Showing 1 changed file with 23 additions and 1 deletions   Show diff stats
web/CXM_making_a_web_site.anubis
@@ -1855,6 +1855,8 @@ public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href, HTML_Off_Form @@ -1855,6 +1855,8 @@ public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href, HTML_Off_Form
1855 public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href, List(HTML_Off_Form) content) = a(attrs, _href, _self, content). 1855 public define HTML_Off_Form a(List(CoreAttrs) attrs, A_href _href, List(HTML_Off_Form) content) = a(attrs, _href, _self, content).
1856 public define HTML_Off_Form a(A_href _href, HTML_Off_Form content) = a([], _href, _self, [content]). 1856 public define HTML_Off_Form a(A_href _href, HTML_Off_Form content) = a([], _href, _self, [content]).
1857 public define HTML_Off_Form a(A_href _href, List(HTML_Off_Form) content) = a([], _href, _self, content). 1857 public define HTML_Off_Form a(A_href _href, List(HTML_Off_Form) content) = a([], _href, _self, content).
  1858 +public define HTML_Off_Form a(A_href _href, A_target _target, HTML_Off_Form content) = a([], _href, _target, [content]).
  1859 +public define HTML_Off_Form a(A_href _href, A_target _target, List(HTML_Off_Form) content) = a([], _href, _target, content).
1858 1860
1859 // <article> 1861 // <article>
1860 public define HTML_Off_Form article(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("article", attrs, content). 1862 public define HTML_Off_Form article(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("article", attrs, content).
@@ -1878,6 +1880,12 @@ public define HTML_Off_Form button(List(CoreAttrs) attrs, HTML_Off_Form content) @@ -1878,6 +1880,12 @@ public define HTML_Off_Form button(List(CoreAttrs) attrs, HTML_Off_Form content)
1878 public define HTML_Off_Form button(List(HTML_Off_Form) content) = html_tag("button", [], content). 1880 public define HTML_Off_Form button(List(HTML_Off_Form) content) = html_tag("button", [], content).
1879 public define HTML_Off_Form button(HTML_Off_Form content) = html_tag("button", [], [content]). 1881 public define HTML_Off_Form button(HTML_Off_Form content) = html_tag("button", [], [content]).
1880 1882
  1883 + // <datalist>
  1884 +public define HTML_Off_Form datalist(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("datalist", attrs, content).
  1885 +public define HTML_Off_Form datalist(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("datalist", attrs, [content]).
  1886 +public define HTML_Off_Form datalist(List(HTML_Off_Form) content) = html_tag("datalist", [], content).
  1887 +public define HTML_Off_Form datalist(HTML_Off_Form content) = html_tag("datalist", [], [content]).
  1888 +
1881 // <div> 1889 // <div>
1882 public define HTML_Off_Form div(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("div", attrs, content). 1890 public define HTML_Off_Form div(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("div", attrs, content).
1883 public define HTML_Off_Form div(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("div", attrs, [content]). 1891 public define HTML_Off_Form div(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("div", attrs, [content]).
@@ -1972,6 +1980,12 @@ public define HTML_Off_Form ol(List(CoreAttrs) attrs, HTML_Off_Form content) @@ -1972,6 +1980,12 @@ public define HTML_Off_Form ol(List(CoreAttrs) attrs, HTML_Off_Form content)
1972 public define HTML_Off_Form ol(List(HTML_Off_Form) content) = html_tag("ol", [], content). 1980 public define HTML_Off_Form ol(List(HTML_Off_Form) content) = html_tag("ol", [], content).
1973 public define HTML_Off_Form ol(HTML_Off_Form content) = html_tag("ol", [], [content]). 1981 public define HTML_Off_Form ol(HTML_Off_Form content) = html_tag("ol", [], [content]).
1974 1982
  1983 + // <option>
  1984 +public define HTML_Off_Form option(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("option", attrs, content).
  1985 +public define HTML_Off_Form option(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("option", attrs, [content]).
  1986 +public define HTML_Off_Form option(List(HTML_Off_Form) content) = html_tag("option", [], content).
  1987 +public define HTML_Off_Form option(HTML_Off_Form content) = html_tag("option", [], [content]).
  1988 +
1975 // <p> 1989 // <p>
1976 public define HTML_Off_Form p(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("p", attrs, content). 1990 public define HTML_Off_Form p(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("p", attrs, content).
1977 public define HTML_Off_Form p(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("p", attrs, [content]). 1991 public define HTML_Off_Form p(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("p", attrs, [content]).
@@ -1984,6 +1998,14 @@ public define HTML_Off_Form section(List(CoreAttrs) attrs, HTML_Off_Form content @@ -1984,6 +1998,14 @@ public define HTML_Off_Form section(List(CoreAttrs) attrs, HTML_Off_Form content
1984 public define HTML_Off_Form section(List(HTML_Off_Form) content) = html_tag("section", [], content). 1998 public define HTML_Off_Form section(List(HTML_Off_Form) content) = html_tag("section", [], content).
1985 public define HTML_Off_Form section(HTML_Off_Form content) = html_tag("section", [], [content]). 1999 public define HTML_Off_Form section(HTML_Off_Form content) = html_tag("section", [], [content]).
1986 2000
  2001 + // <select>
  2002 +public define HTML_Off_Form select(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("select", attrs, content).
  2003 +public define HTML_Off_Form select(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("select", attrs, [content]).
  2004 +public define HTML_Off_Form select(List(CoreAttrs) attrs) = html_tag("select", attrs, []).
  2005 +public define HTML_Off_Form select(List(HTML_Off_Form) content) = html_tag("select", [], content).
  2006 +public define HTML_Off_Form select(HTML_Off_Form content) = html_tag("select", [], [content]).
  2007 +
  2008 +
1987 // <span> 2009 // <span>
1988 public define HTML_Off_Form span(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("span", attrs, content). 2010 public define HTML_Off_Form span(List(CoreAttrs) attrs, List(HTML_Off_Form) content) = html_tag("span", attrs, content).
1989 public define HTML_Off_Form span(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("span", attrs, [content]). 2011 public define HTML_Off_Form span(List(CoreAttrs) attrs, HTML_Off_Form content) = html_tag("span", attrs, [content]).
@@ -6346,7 +6368,7 @@ public define AWP_Handler_Answer //Printable_tree @@ -6346,7 +6368,7 @@ public define AWP_Handler_Answer //Printable_tree
6346 printable_tree([ 6368 printable_tree([
6347 "HTTP/1.1 " + status_string, crlf, 6369 "HTTP/1.1 " + status_string, crlf,
6348 format_headers(standard_headers), 6370 format_headers(standard_headers),
6349 - format_headers(standard_headers_for(to_String(mime_json), length(content), success(charset))), 6371 + format_headers(standard_headers_for(to_String(mime_application_json), length(content), success(charset))),
6350 format_headers(status_headers), 6372 format_headers(status_headers),
6351 format_headers(additional_headers), 6373 format_headers(additional_headers),
6352 crlf . 6374 crlf .