diff options
author | Knut Olav Bøhmer <bohmer@gmail.com> | 2016-07-29 02:23:02 +0200 |
---|---|---|
committer | Knut Olav Bøhmer <bohmer@gmail.com> | 2016-07-29 02:23:02 +0200 |
commit | cea7e67db255fe127e68b0c96f05ddbe22982285 (patch) | |
tree | d9aa0623d0ec42f1dcabda0697b1bee55138e0c9 | |
parent | 4ccca26227f00908773b897cd98566c989454b7f (diff) | |
download | tl-who-cea7e67db255fe127e68b0c96f05ddbe22982285.tar.gz tl-who-cea7e67db255fe127e68b0c96f05ddbe22982285.tar.bz2 tl-who-cea7e67db255fe127e68b0c96f05ddbe22982285.zip |
Update documentation for *empty-attribute-syntax*
-rw-r--r-- | doc/index.html | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/doc/index.html b/doc/index.html index ab5f777..279eb0a 100644 --- a/doc/index.html +++ b/doc/index.html @@ -327,10 +327,12 @@ is transformed into an (X)HTML <b>tag</b> of the same (usually <href="#*downcase <table border=0 cellpadding=2 cellspacing=3><tr><td><pre>(:td :nowrap t) <font color="red">=></font> (write-string "<td nowrap='nowrap' />" s)</pre></td></tr></table> - With <a href="#html-mode"><code>HTML-MODE</code></a> set to <code>:SGML</code>: + With <a href="#html-mode"><code>HTML-MODE</code></a> set to <code>:SGML</code> or <code>:HTML5</code>: <table border=0 cellpadding=2 cellspacing=3><tr><td><pre>(:td :nowrap t) <font color="red">=></font> (write-string "<td nowrap>" s)</pre></td></tr></table> + Attribute minimization is controlled by <a href="#*empty-attribute-syntax*"><code>*EMPTY-ATTRIBUTE-SYNTAX*</code></a><br> + <li>If it is <code>NIL</code> the attribute will be left out completely. <table border=0 cellpadding=2 cellspacing=3><tr><td><pre>(:td :nowrap nil) <font color="red">=></font> (write-string "<td />" s)</pre></td></tr></table> @@ -573,6 +575,19 @@ This is the prologue string which will be printed if the <code><i>prologue</i></ <pre>"<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"</pre> </blockquote> +<p><br>[Special variable] + <br><a class=none name="*empty-attribute-syntax*"><b>*empty-attribute-syntax*</b></a> + + <blockquote><br> + This controls the attribute minimization. (also called 'boolean attributes', or 'empty attribute syntax' according to the w3 html standard). Set value to <code>T</code> to enable attribute minimization. + <p>In XHTML attribute minimization is forbidden, and all attributes must have a value. Thus in XHTML boolean attributes must be defined as + <pre> <input disabled='disabled' /></pre> + In HTML5 and SGML HTML boolean attributes can be defined as + <pre><input disabled></pre> + Gets changed when you set <a href="#html-mode"><code>HTML-MODE</code></a>. Its initial value is <code>NIL</code> + </p> + </blockquote> + <p><br>[Symbol] <br><a class=none name="esc"><b>esc</b></a> <br>[Symbol] @@ -594,7 +609,7 @@ The function <code>HTML-MODE</code> returns the current mode for generating HTML <p> Setting it to SGML HTML sets the <a href="#*prologue*"><code>*prologue*</code></a> to the doctype string for HTML 4.01 transitional: <pre><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"></pre> -Code generation in SGML HTML is slightly different from XHTML - there's no need to end empty elements with <code>/></code> and empty attributes are allowed. +Code generation in HTML5 and SGML HTML is slightly different from XHTML - there's no need to end empty elements with <code>/></code> and empty attributes are allowed. <p> Setting it to HTML5 sets the <a href="#*prologue*"><code>*prologue*</code></a> to the following doctype string: <pre><!DOCTYPE html></pre> |