- From: Michael Smith via cvs-syncmail <cvsmail@w3.org>
- Date: Thu, 10 Sep 2009 09:57:06 +0000
- To: public-html-commits@w3.org
Update of /sources/public/html5/spec-author-view In directory hutz:/tmp/cvs-serv9331 Modified Files: Overview.html acknowledgements.html browsers.html comms.html dom.html editing.html embedded-content-0.html forms.html history.html iana-considerations.html index.html infrastructure.html interactive-elements.html introduction.html microdata.html named-character-references.html no.html obsolete.html offline.html references.html semantics.html spec.html syntax.html tabular-data.html text-level-semantics.html the-canvas-element.html the-xhtml-syntax.html video.html Log Message: minor editorial issues (whatwg r3792) [updated by splitter] Index: infrastructure.html =================================================================== RCS file: /sources/public/html5/spec-author-view/infrastructure.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- infrastructure.html 10 Sep 2009 09:36:58 -0000 1.87 +++ infrastructure.html 10 Sep 2009 09:57:03 -0000 1.88 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="introduction.html">← 1 Introduction</a> – <a href="Overview.html#contents">Table of contents</a> – Index: text-level-semantics.html =================================================================== RCS file: /sources/public/html5/spec-author-view/text-level-semantics.html,v retrieving revision 1.85 retrieving revision 1.86 diff -u -d -r1.85 -r1.86 --- text-level-semantics.html 10 Sep 2009 09:36:59 -0000 1.85 +++ text-level-semantics.html 10 Sep 2009 09:57:04 -0000 1.86 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="semantics.html">← 4 The elements of HTML</a> – <a href="Overview.html#contents">Table of contents</a> – Index: history.html =================================================================== RCS file: /sources/public/html5/spec-author-view/history.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- history.html 10 Sep 2009 09:36:58 -0000 1.87 +++ history.html 10 Sep 2009 09:57:03 -0000 1.88 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="offline.html">← 6.7 Offline Web applications</a> – <a href="Overview.html#contents">Table of contents</a> – Index: tabular-data.html =================================================================== RCS file: /sources/public/html5/spec-author-view/tabular-data.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- tabular-data.html 10 Sep 2009 09:36:59 -0000 1.86 +++ tabular-data.html 10 Sep 2009 09:57:04 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="the-canvas-element.html">← 4.8.11 The canvas element</a> – <a href="Overview.html#contents">Table of contents</a> – Index: microdata.html =================================================================== RCS file: /sources/public/html5/spec-author-view/microdata.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- microdata.html 10 Sep 2009 09:36:58 -0000 1.86 +++ microdata.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="interactive-elements.html">← 4.11 Interactive elements</a> – <a href="Overview.html#contents">Table of contents</a> – Index: Overview.html =================================================================== RCS file: /sources/public/html5/spec-author-view/Overview.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- Overview.html 10 Sep 2009 09:36:58 -0000 1.86 +++ Overview.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -198,7 +198,7 @@ </dl><p>This specification is available in the following formats: <a href="spec.html">single page HTML</a>, <a href="Overview.html">multipage HTML</a>. -This is revision 1.2960. +This is revision 1.2962. </p> <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> © 2009 <a href="http://www.w3.org/"><abbr title="World Wide Index: embedded-content-0.html =================================================================== RCS file: /sources/public/html5/spec-author-view/embedded-content-0.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- embedded-content-0.html 10 Sep 2009 09:36:58 -0000 1.86 +++ embedded-content-0.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="dom.html">← 3 Semantics, structure, and APIs of HTML documents</a> – <a href="Overview.html#contents">Table of contents</a> – Index: dom.html =================================================================== RCS file: /sources/public/html5/spec-author-view/dom.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- dom.html 10 Sep 2009 09:36:58 -0000 1.87 +++ dom.html 10 Sep 2009 09:57:03 -0000 1.88 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="infrastructure.html">← 2 Common infrastructure</a> – <a href="Overview.html#contents">Table of contents</a> – Index: acknowledgements.html =================================================================== RCS file: /sources/public/html5/spec-author-view/acknowledgements.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- acknowledgements.html 10 Sep 2009 09:36:58 -0000 1.86 +++ acknowledgements.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -175,7 +175,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="references.html">← References</a> – <a href="Overview.html#contents">Table of contents</a> Index: the-canvas-element.html =================================================================== RCS file: /sources/public/html5/spec-author-view/the-canvas-element.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- the-canvas-element.html 10 Sep 2009 09:36:59 -0000 1.86 +++ the-canvas-element.html 10 Sep 2009 09:57:04 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="video.html">← 4.8.7 The video element</a> – <a href="Overview.html#contents">Table of contents</a> – Index: iana-considerations.html =================================================================== RCS file: /sources/public/html5/spec-author-view/iana-considerations.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- iana-considerations.html 10 Sep 2009 09:36:58 -0000 1.86 +++ iana-considerations.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="no.html">← 12 Things that you can't do with this specification because they are better handled using other technologies that are further described herein</a> – <a href="Overview.html#contents">Table of contents</a> – Index: forms.html =================================================================== RCS file: /sources/public/html5/spec-author-view/forms.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- forms.html 10 Sep 2009 09:36:58 -0000 1.86 +++ forms.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="tabular-data.html">← 4.9 Tabular data</a> – <a href="Overview.html#contents">Table of contents</a> – Index: interactive-elements.html =================================================================== RCS file: /sources/public/html5/spec-author-view/interactive-elements.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- interactive-elements.html 10 Sep 2009 09:36:58 -0000 1.86 +++ interactive-elements.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="forms.html">← 4.10 Forms</a> – <a href="Overview.html#contents">Table of contents</a> – Index: editing.html =================================================================== RCS file: /sources/public/html5/spec-author-view/editing.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- editing.html 10 Sep 2009 09:36:58 -0000 1.86 +++ editing.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="history.html">← 6.8 Session history and navigation</a> – <a href="Overview.html#contents">Table of contents</a> – Index: video.html =================================================================== RCS file: /sources/public/html5/spec-author-view/video.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- video.html 10 Sep 2009 09:36:59 -0000 1.86 +++ video.html 10 Sep 2009 09:57:04 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="text-level-semantics.html">← 4.6 Text-level semantics</a> – <a href="Overview.html#contents">Table of contents</a> – Index: browsers.html =================================================================== RCS file: /sources/public/html5/spec-author-view/browsers.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- browsers.html 10 Sep 2009 09:36:58 -0000 1.87 +++ browsers.html 10 Sep 2009 09:57:03 -0000 1.88 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="microdata.html">← 5 Microdata</a> – <a href="Overview.html#contents">Table of contents</a> – Index: the-xhtml-syntax.html =================================================================== RCS file: /sources/public/html5/spec-author-view/the-xhtml-syntax.html,v retrieving revision 1.85 retrieving revision 1.86 diff -u -d -r1.85 -r1.86 --- the-xhtml-syntax.html 10 Sep 2009 09:36:59 -0000 1.85 +++ the-xhtml-syntax.html 10 Sep 2009 09:57:04 -0000 1.86 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="named-character-references.html">← 9.2 Named character references</a> – <a href="Overview.html#contents">Table of contents</a> – Index: offline.html =================================================================== RCS file: /sources/public/html5/spec-author-view/offline.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- offline.html 10 Sep 2009 09:36:58 -0000 1.86 +++ offline.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="browsers.html">← 6 Web browsers</a> – <a href="Overview.html#contents">Table of contents</a> – Index: syntax.html =================================================================== RCS file: /sources/public/html5/spec-author-view/syntax.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- syntax.html 10 Sep 2009 09:36:59 -0000 1.87 +++ syntax.html 10 Sep 2009 09:57:04 -0000 1.88 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="comms.html">← 8 Communication</a> – <a href="Overview.html#contents">Table of contents</a> – Index: obsolete.html =================================================================== RCS file: /sources/public/html5/spec-author-view/obsolete.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- obsolete.html 10 Sep 2009 09:36:58 -0000 1.87 +++ obsolete.html 10 Sep 2009 09:57:03 -0000 1.88 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="the-xhtml-syntax.html">← 10 The XHTML syntax</a> – <a href="Overview.html#contents">Table of contents</a> – Index: named-character-references.html =================================================================== RCS file: /sources/public/html5/spec-author-view/named-character-references.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- named-character-references.html 10 Sep 2009 09:36:58 -0000 1.87 +++ named-character-references.html 10 Sep 2009 09:57:03 -0000 1.88 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="syntax.html">← 9 The HTML syntax</a> – <a href="Overview.html#contents">Table of contents</a> – Index: references.html =================================================================== RCS file: /sources/public/html5/spec-author-view/references.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- references.html 10 Sep 2009 09:36:58 -0000 1.86 +++ references.html 10 Sep 2009 09:57:04 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="index.html">← Index</a> – <a href="Overview.html#contents">Table of contents</a> – Index: semantics.html =================================================================== RCS file: /sources/public/html5/spec-author-view/semantics.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- semantics.html 10 Sep 2009 09:36:58 -0000 1.86 +++ semantics.html 10 Sep 2009 09:57:04 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="embedded-content-0.html">← 3.2.5.1.6 Embedded content</a> – <a href="Overview.html#contents">Table of contents</a> – @@ -820,7 +820,7 @@ <div class="example"> - <p>A news organisation's front page could include the following + <p>A news organization's front page could include the following markup in the page's <code><a href="#the-head-element-0">head</a></code> element, to ensure that the page automatically reloads from the server every five minutes:</p> @@ -1147,7 +1147,47 @@ </div><p class="note">When inserted using the <code title="dom-document-write"><a href="#dom-document-write">document.write()</a></code> method, <code><a href="#script">script</a></code> elements execute (typically synchronously), but when inserted using <code title="dom-innerHTML"><a href="embedded-content-0.html#dom-innerhtml">innerHTML</a></code> and <code title="dom-outerHTML"><a href="embedded-content-0.html#dom-outerhtml">outerHTML</a></code> attributes, they do not - execute at all.</p><h5 id="scriptingLanguages"><span class="secno">4.3.1.1 </span>Scripting languages</h5><p>The following lists some <a href="infrastructure.html#mime-type" title="MIME type">MIME + execute at all.</p><div class="example"> + + <p>The following sample shows how a script element can be used to + define a function that is then used by other parts of the + document. It also shows how a <code><a href="#script">script</a></code> element can be + used to invoke script while the document is being parsed, in this + case to initialize the form's output.</p> + + <pre><script> + function calculate(form) { + var price = 52000; + if (form.elements.brakes.checked) + price += 1000; + if (form.elements.radio.checked) + price += 2500; + if (form.elements.turbo.checked) + price += 5000; + if (form.elements.sticker.checked) + price += 250; + form.elements.result.value = price; + } +</script> +<form name="pricecalc" onsubmit="return false"> + <fieldset> + <legend>Work out the price of your car</legend> + <p>Base cost: £52000.</p> + <p>Select additional options:</p> + <ul> + <li><label><input type=checkbox name=brakes> Ceramic brakes (£1000)</label></li> + <li><label><input type=checkbox name=radio> Satellite radio (£2500)</label></li> + <li><label><input type=checkbox name=turbo> Turbo charger (£5000)</label></li> + <li><label><input type=checkbox name=sticker> "XZ" sticker (£250)</label></li> + </ul> + <p>Total: £<output name=result onformchange="calculate(form)"></output></p> + </fieldset> + <script> + document.forms.pricecalc.dispatchFormChange(); + </script> +</form></pre> + + </div><h5 id="scriptingLanguages"><span class="secno">4.3.1.1 </span>Scripting languages</h5><p>The following lists some <a href="infrastructure.html#mime-type" title="MIME type">MIME types</a> and the languages to which they refer:</p><dl><dt><code>application/ecmascript</code></dt> <dt><code>application/javascript</code></dt> <dt><code>application/x-ecmascript</code></dt> Index: index.html =================================================================== RCS file: /sources/public/html5/spec-author-view/index.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- index.html 10 Sep 2009 09:36:58 -0000 1.86 +++ index.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="iana-considerations.html">← IANA considerations</a> – <a href="Overview.html#contents">Table of contents</a> – Index: comms.html =================================================================== RCS file: /sources/public/html5/spec-author-view/comms.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- comms.html 10 Sep 2009 09:36:58 -0000 1.86 +++ comms.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="editing.html">← 7 User Interaction</a> – <a href="Overview.html#contents">Table of contents</a> – Index: spec.html =================================================================== RCS file: /sources/public/html5/spec-author-view/spec.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- spec.html 10 Sep 2009 09:36:59 -0000 1.87 +++ spec.html 10 Sep 2009 09:57:04 -0000 1.88 @@ -197,7 +197,7 @@ </dl><p>This specification is available in the following formats: <a href=spec.html>single page HTML</a>, <a href=Overview.html>multipage HTML</a>. -This is revision 1.2960. +This is revision 1.2962. </p> <p class=copyright><a href=http://www.w3.org/Consortium/Legal/ipr-notice#Copyright>Copyright</a> © 2009 <a href=http://www.w3.org/><abbr title="World Wide @@ -4651,7 +4651,7 @@ <div class=example> - <p>A news organisation's front page could include the following + <p>A news organization's front page could include the following markup in the page's <code><a href=#the-head-element-0>head</a></code> element, to ensure that the page automatically reloads from the server every five minutes:</p> @@ -4978,7 +4978,47 @@ </div><p class=note>When inserted using the <code title=dom-document-write><a href=#dom-document-write>document.write()</a></code> method, <code><a href=#script>script</a></code> elements execute (typically synchronously), but when inserted using <code title=dom-innerHTML><a href=#dom-innerhtml>innerHTML</a></code> and <code title=dom-outerHTML><a href=#dom-outerhtml>outerHTML</a></code> attributes, they do not - execute at all.</p><h5 id=scriptingLanguages><span class=secno>4.3.1.1 </span>Scripting languages</h5><p>The following lists some <a href=#mime-type title="MIME type">MIME + execute at all.</p><div class=example> + + <p>The following sample shows how a script element can be used to + define a function that is then used by other parts of the + document. It also shows how a <code><a href=#script>script</a></code> element can be + used to invoke script while the document is being parsed, in this + case to initialize the form's output.</p> + + <pre><script> + function calculate(form) { + var price = 52000; + if (form.elements.brakes.checked) + price += 1000; + if (form.elements.radio.checked) + price += 2500; + if (form.elements.turbo.checked) + price += 5000; + if (form.elements.sticker.checked) + price += 250; + form.elements.result.value = price; + } +</script> +<form name="pricecalc" onsubmit="return false"> + <fieldset> + <legend>Work out the price of your car</legend> + <p>Base cost: £52000.</p> + <p>Select additional options:</p> + <ul> + <li><label><input type=checkbox name=brakes> Ceramic brakes (£1000)</label></li> + <li><label><input type=checkbox name=radio> Satellite radio (£2500)</label></li> + <li><label><input type=checkbox name=turbo> Turbo charger (£5000)</label></li> + <li><label><input type=checkbox name=sticker> "XZ" sticker (£250)</label></li> + </ul> + <p>Total: £<output name=result onformchange="calculate(form)"></output></p> + </fieldset> + <script> + document.forms.pricecalc.dispatchFormChange(); + </script> +</form></pre> + + </div><h5 id=scriptingLanguages><span class=secno>4.3.1.1 </span>Scripting languages</h5><p>The following lists some <a href=#mime-type title="MIME type">MIME types</a> and the languages to which they refer:</p><dl><dt><code>application/ecmascript</code></dt> <dt><code>application/javascript</code></dt> <dt><code>application/x-ecmascript</code></dt> Index: introduction.html =================================================================== RCS file: /sources/public/html5/spec-author-view/introduction.html,v retrieving revision 1.87 retrieving revision 1.88 diff -u -d -r1.87 -r1.88 --- introduction.html 10 Sep 2009 09:36:58 -0000 1.87 +++ introduction.html 10 Sep 2009 09:57:03 -0000 1.88 @@ -175,7 +175,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="Overview.html#contents">Table of contents</a> – <a href="infrastructure.html">2 Common infrastructure →</a> Index: no.html =================================================================== RCS file: /sources/public/html5/spec-author-view/no.html,v retrieving revision 1.86 retrieving revision 1.87 diff -u -d -r1.86 -r1.87 --- no.html 10 Sep 2009 09:36:58 -0000 1.86 +++ no.html 10 Sep 2009 09:57:03 -0000 1.87 @@ -176,7 +176,7 @@ <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p> <h1>HTML5</h1> <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> -<p>This is revision 1.2960.</p> +<p>This is revision 1.2962.</p> </div><div> <a href="obsolete.html">← 11 Obsolete features</a> – <a href="Overview.html#contents">Table of contents</a> –
Received on Thursday, 10 September 2009 09:57:17 UTC