html5/spec-author-view Overview.html,1.144,1.145 acknowledgements.html,1.144,1.145 browsers.html,1.145,1.146 comms.html,1.144,1.145 dom.html,1.145,1.146 editing.html,1.144,1.145 embedded-content-0.html,1.144,1.145 forms.html,1.144,1.145 history.html,1.145,1.146 iana-considerations.html,1.144,1.145 index.html,1.144,1.145 infrastructure.html,1.145,1.146 interactive-elements.html,1.144,1.145 introduction.html,1.145,1.146 microdata.html,1.144,1.145 named-character-references.html,1.145,1.146 no.html,1.144,1.145 obsolete.html,1.145,1.146 offline.html,1.144,1.145 references.html,1.144,1.145 semantics.html,1.144,1.145 spec.html,1.145,1.146 syntax.html,1.145,1.146 tabular-data.html,1.144,1.145 text-level-semantics.html,1.143,1.144 the-canvas-element.html,1.144,1.145 the-xhtml-syntax.html,1.143,1.144 video.html,1.144,1.145

Update of /sources/public/html5/spec-author-view
In directory hutz:/tmp/cvs-serv17680

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:
Include an example for how to get the filename out of input.value (whatwg r3863)

[updated by splitter]


Index: infrastructure.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/infrastructure.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- infrastructure.html	15 Sep 2009 11:26:53 -0000	1.145
+++ infrastructure.html	15 Sep 2009 12:07:06 -0000	1.146
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="introduction.html">&#8592; 1 Introduction</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: text-level-semantics.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/text-level-semantics.html,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- text-level-semantics.html	15 Sep 2009 11:26:54 -0000	1.143
+++ text-level-semantics.html	15 Sep 2009 12:07:07 -0000	1.144
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="semantics.html">&#8592; 4 The elements of HTML</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: history.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/history.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- history.html	15 Sep 2009 11:26:53 -0000	1.145
+++ history.html	15 Sep 2009 12:07:06 -0000	1.146
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="offline.html">&#8592; 6.7 Offline Web applications</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: tabular-data.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/tabular-data.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- tabular-data.html	15 Sep 2009 11:26:54 -0000	1.144
+++ tabular-data.html	15 Sep 2009 12:07:07 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="the-canvas-element.html">&#8592; 4.8.11 The canvas element</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: microdata.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/microdata.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- microdata.html	15 Sep 2009 11:26:53 -0000	1.144
+++ microdata.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="interactive-elements.html">&#8592; 4.11 Interactive elements</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/Overview.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- Overview.html	15 Sep 2009 11:26:53 -0000	1.144
+++ Overview.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -240,7 +240,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.3028.
+This is revision 1.3029.
    </p>
    <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
    &#169; 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.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- embedded-content-0.html	15 Sep 2009 11:26:53 -0000	1.144
+++ embedded-content-0.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="dom.html">&#8592; 3 Semantics, structure, and APIs of HTML documents</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: dom.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/dom.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- dom.html	15 Sep 2009 11:26:53 -0000	1.145
+++ dom.html	15 Sep 2009 12:07:06 -0000	1.146
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="infrastructure.html">&#8592; 2 Common infrastructure</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: acknowledgements.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/acknowledgements.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- acknowledgements.html	15 Sep 2009 11:26:53 -0000	1.144
+++ acknowledgements.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -217,7 +217,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="references.html">&#8592; References</a> &#8211;
    <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.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- the-canvas-element.html	15 Sep 2009 11:26:54 -0000	1.144
+++ the-canvas-element.html	15 Sep 2009 12:07:07 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="video.html">&#8592; 4.8.7 The video element</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: iana-considerations.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/iana-considerations.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- iana-considerations.html	15 Sep 2009 11:26:53 -0000	1.144
+++ iana-considerations.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="no.html">&#8592; 12 Things that you can't do with this specification because they are better handled using other technologies that are further described herein</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: forms.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/forms.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- forms.html	15 Sep 2009 11:26:53 -0000	1.144
+++ forms.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="tabular-data.html">&#8592; 4.9 Tabular data</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;
@@ -1956,7 +1956,44 @@
 
   </dl><p>The tokens must not be <a href="infrastructure.html#ascii-case-insensitive">ASCII case-insensitive</a>
   matches for any of the other tokens (i.e. duplicates are not
-  allowed). </p><hr><h6 id="submit-button-state"><span class="secno">4.10.5.1.19 </span><dfn title="attr-input-type-submit">Submit Button</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#the-input-element">input</a></code> element <a href="#represents">represents</a> a button
+  allowed). </p><div class="example">
+
+   <p>For historical reasons, the <code title="dom-input-value"><a href="#dom-input-value">value</a></code> IDL attribute prefixes the
+   filename with the string "<code title="">C:\fakepath\</code>". Some
+   legacy user agents actually included the full path (which was a
+   security vulnerability). As a result of this, obtaining the
+   filename from the <code title="dom-input-value"><a href="#dom-input-value">value</a></code> IDL
+   attribute in a backwards-compatible way is non-trivial. The
+   following function extracts the filename in a suitably compatible
+   manner:</p>
+
+   <pre>function extractFilename(path) {<!--
+  if (path.substr(0, 12) == "C:\\fakepath\\")
+    return path.substr(12);-->
+  var x;
+  x = path.lastIndexOf('\\');
+  if (x &gt;= 0) // Windows-based path
+    return path.substr(x+1);
+  x = path.lastIndexOf('/');
+  if (x &gt;= 0) // Unix-based path
+    return path.substr(x+1);
+  return path; // just the filename
+}</pre>
+
+   <p>This can be used as follows:</p>
+
+   <pre>&lt;p&gt;&lt;input type=file name=image onchange="updateFilename(this.value)"&gt;&lt;/p&gt;
+&lt;p&gt;The name of the file you picked is: &lt;span id="filename"&gt;(none)&lt;/span&gt;&lt;/p&gt;
+&lt;script&gt;
+ function updateFilename(path) {
+   var name = extractFilename(path);
+   document.getElementById('filename').textContent = name;
+ }
+&lt;/script&gt;</pre>
+
+   <!-- How useful this actually is... is unclear. -->
+
+  </div><hr><h6 id="submit-button-state"><span class="secno">4.10.5.1.19 </span><dfn title="attr-input-type-submit">Submit Button</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href="#the-input-element">input</a></code> element <a href="#represents">represents</a> a button
   that, when activated, submits the form.  The element is a <a href="#concept-button" title="concept-button">button</a>, specifically a <a href="#concept-submit-button" title="concept-submit-button">submit button</a>.</p><p>The <code title="attr-fs-formaction"><a href="#attr-fs-formaction">formaction</a></code>, <code title="attr-fs-formenctype"><a href="#attr-fs-formenctype">formenctype</a></code>, <code title="attr-fs-formmethod"><a href="#attr-fs-formmethod">formmethod</a></code>, <code title="attr-fs-formnovalidate"><a href="#attr-fs-formnovalidate">formnovalidate</a></code>, and <code title="attr-fs-formtarget"><a href="#attr-fs-formtarget">formtarget</a></code> attributes are <a href="#attributes-for-form-submission">attributes
   for form submission</a>.</p><p class="note">The <code title="attr-fs-formnovalidate"><a href="#attr-fs-formnovalidate">formnovalidate</a></code> attribute can
   be used to make submit buttons that do not trigger the constraint

Index: interactive-elements.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/interactive-elements.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- interactive-elements.html	15 Sep 2009 11:26:53 -0000	1.144
+++ interactive-elements.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="forms.html">&#8592; 4.10 Forms</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: editing.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/editing.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- editing.html	15 Sep 2009 11:26:53 -0000	1.144
+++ editing.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="history.html">&#8592; 6.8 Session history and navigation</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: video.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/video.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- video.html	15 Sep 2009 11:26:54 -0000	1.144
+++ video.html	15 Sep 2009 12:07:07 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="text-level-semantics.html">&#8592; 4.6 Text-level semantics</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: browsers.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/browsers.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- browsers.html	15 Sep 2009 11:26:53 -0000	1.145
+++ browsers.html	15 Sep 2009 12:07:06 -0000	1.146
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="microdata.html">&#8592; 5 Microdata</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: the-xhtml-syntax.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/the-xhtml-syntax.html,v
retrieving revision 1.143
retrieving revision 1.144
diff -u -d -r1.143 -r1.144
--- the-xhtml-syntax.html	15 Sep 2009 11:26:54 -0000	1.143
+++ the-xhtml-syntax.html	15 Sep 2009 12:07:07 -0000	1.144
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="named-character-references.html">&#8592; 9.2 Named character references</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: offline.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/offline.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- offline.html	15 Sep 2009 11:26:53 -0000	1.144
+++ offline.html	15 Sep 2009 12:07:07 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="browsers.html">&#8592; 6 Web browsers</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: syntax.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/syntax.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- syntax.html	15 Sep 2009 11:26:54 -0000	1.145
+++ syntax.html	15 Sep 2009 12:07:07 -0000	1.146
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="comms.html">&#8592; 8 Communication</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: obsolete.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/obsolete.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- obsolete.html	15 Sep 2009 11:26:53 -0000	1.145
+++ obsolete.html	15 Sep 2009 12:07:07 -0000	1.146
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="the-xhtml-syntax.html">&#8592; 10 The XHTML syntax</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: named-character-references.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/named-character-references.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- named-character-references.html	15 Sep 2009 11:26:53 -0000	1.145
+++ named-character-references.html	15 Sep 2009 12:07:06 -0000	1.146
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="syntax.html">&#8592; 9 The HTML syntax</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: references.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/references.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- references.html	15 Sep 2009 11:26:53 -0000	1.144
+++ references.html	15 Sep 2009 12:07:07 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="index.html">&#8592; Index</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: semantics.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/semantics.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- semantics.html	15 Sep 2009 11:26:53 -0000	1.144
+++ semantics.html	15 Sep 2009 12:07:07 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="embedded-content-0.html">&#8592; 3.2.5.1.6 Embedded content</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: index.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/index.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- index.html	15 Sep 2009 11:26:53 -0000	1.144
+++ index.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="iana-considerations.html">&#8592; IANA considerations</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: comms.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/comms.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- comms.html	15 Sep 2009 11:26:53 -0000	1.144
+++ comms.html	15 Sep 2009 12:07:06 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="editing.html">&#8592; 7 User Interaction</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/spec.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- spec.html	15 Sep 2009 11:26:53 -0000	1.145
+++ spec.html	15 Sep 2009 12:07:07 -0000	1.146
@@ -238,7 +238,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.3028.
+This is revision 1.3029.
    </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
@@ -15129,7 +15129,44 @@
 
   </dl><p>The tokens must not be <a href=#ascii-case-insensitive>ASCII case-insensitive</a>
   matches for any of the other tokens (i.e. duplicates are not
-  allowed). </p><hr><h6 id=submit-button-state><span class=secno>4.10.5.1.19 </span><dfn title=attr-input-type-submit>Submit Button</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a button
+  allowed). </p><div class=example>
+
+   <p>For historical reasons, the <code title=dom-input-value><a href=#dom-input-value>value</a></code> IDL attribute prefixes the
+   filename with the string "<code title="">C:\fakepath\</code>". Some
+   legacy user agents actually included the full path (which was a
+   security vulnerability). As a result of this, obtaining the
+   filename from the <code title=dom-input-value><a href=#dom-input-value>value</a></code> IDL
+   attribute in a backwards-compatible way is non-trivial. The
+   following function extracts the filename in a suitably compatible
+   manner:</p>
+
+   <pre>function extractFilename(path) {<!--
+  if (path.substr(0, 12) == "C:\\fakepath\\")
+    return path.substr(12);-->
+  var x;
+  x = path.lastIndexOf('\\');
+  if (x &gt;= 0) // Windows-based path
+    return path.substr(x+1);
+  x = path.lastIndexOf('/');
+  if (x &gt;= 0) // Unix-based path
+    return path.substr(x+1);
+  return path; // just the filename
+}</pre>
+
+   <p>This can be used as follows:</p>
+
+   <pre>&lt;p&gt;&lt;input type=file name=image onchange="updateFilename(this.value)"&gt;&lt;/p&gt;
+&lt;p&gt;The name of the file you picked is: &lt;span id="filename"&gt;(none)&lt;/span&gt;&lt;/p&gt;
+&lt;script&gt;
+ function updateFilename(path) {
+   var name = extractFilename(path);
+   document.getElementById('filename').textContent = name;
+ }
+&lt;/script&gt;</pre>
+
+   <!-- How useful this actually is... is unclear. -->
+
+  </div><hr><h6 id=submit-button-state><span class=secno>4.10.5.1.19 </span><dfn title=attr-input-type-submit>Submit Button</dfn> state</h6><p class="XXX annotation"><b>Status: </b><i>Last call for comments</i></p><p>The <code><a href=#the-input-element>input</a></code> element <a href=#represents>represents</a> a button
   that, when activated, submits the form.  The element is a <a href=#concept-button title=concept-button>button</a>, specifically a <a href=#concept-submit-button title=concept-submit-button>submit button</a>.</p><p>The <code title=attr-fs-formaction><a href=#attr-fs-formaction>formaction</a></code>, <code title=attr-fs-formenctype><a href=#attr-fs-formenctype>formenctype</a></code>, <code title=attr-fs-formmethod><a href=#attr-fs-formmethod>formmethod</a></code>, <code title=attr-fs-formnovalidate><a href=#attr-fs-formnovalidate>formnovalidate</a></code>, and <code title=attr-fs-formtarget><a href=#attr-fs-formtarget>formtarget</a></code> attributes are <a href=#attributes-for-form-submission>attributes
   for form submission</a>.</p><p class=note>The <code title=attr-fs-formnovalidate><a href=#attr-fs-formnovalidate>formnovalidate</a></code> attribute can
   be used to make submit buttons that do not trigger the constraint

Index: introduction.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/introduction.html,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- introduction.html	15 Sep 2009 11:26:53 -0000	1.145
+++ introduction.html	15 Sep 2009 12:07:06 -0000	1.146
@@ -217,7 +217,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="Overview.html#contents">Table of contents</a> &#8211;
    <a href="infrastructure.html">2 Common infrastructure &#8594;</a>

Index: no.html
===================================================================
RCS file: /sources/public/html5/spec-author-view/no.html,v
retrieving revision 1.144
retrieving revision 1.145
diff -u -d -r1.144 -r1.145
--- no.html	15 Sep 2009 11:26:53 -0000	1.144
+++ no.html	15 Sep 2009 12:07:07 -0000	1.145
@@ -218,7 +218,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.3028.</p>
+<p>This is revision 1.3029.</p>
    </div><div>
    <a href="obsolete.html">&#8592; 11 Obsolete features</a> &#8211;
    <a href="Overview.html#contents">Table of contents</a> &#8211;

Received on Tuesday, 15 September 2009 12:07:20 UTC