html5/spec browsers.html,1.1024,1.1025 rendering.html,1.58,1.59 spec.html,1.1341,1.1342

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv12604

Modified Files:
	browsers.html rendering.html spec.html 
Log Message:
update for pub issues

[updated by splitter]


Index: rendering.html
===================================================================
RCS file: /sources/public/html5/spec/rendering.html,v
retrieving revision 1.58
retrieving revision 1.59
diff -u -d -r1.58 -r1.59
--- rendering.html	5 Dec 2010 09:44:14 -0000	1.58
+++ rendering.html	6 Dec 2010 22:46:41 -0000	1.59
@@ -3566,7 +3566,14 @@
   as an independent set of one or more bidirectional algorithm
   paragraphs when displayed, as defined by the bidirectional
   algorithm, including, for instance, supporting the
-  paragraph-breaking behaviour of U+000A LINE FEED (LF) characters. <a href="references.html#refsBIDI">[BIDI]</a></p>
+  paragraph-breaking behaviour of U+000A LINE FEED (LF) characters.
+  For the purposes of determining the paragraph level of such text in
+  the bidirectional algorithm, this specification does <em>not</em>
+  provide a higher-level override of rules P2 and P3. <a href="references.html#refsBIDI">[BIDI]</a></p>
+
+  <p>When necessary, authors can enforce a particular direction for a
+  given paragraph by starting it with the Unicode U+200E LEFT-TO-RIGHT
+  MARK or U+200F RIGHT-TO-LEFT MARK characters.</p>
 
   <div class="example">
 
@@ -3586,7 +3593,8 @@
 
    <p>For a more complex example, consider the following script:</p>
 
-   <pre>var s;
+   <pre class="bad">/* Warning: this script does not handle right-to-left scripts correctly */
+var s;
 if (s = prompt('What is your name?')) {
   alert(s + '! Ok, Fred, ' + s + ', and Wilma will get the car.');
 }</pre>
@@ -3595,13 +3603,19 @@
    alert "<samp>Kitty! Ok, Fred, Kitty, and Wilma will get the
    car.</samp>". However, if the user enters "<kbd dir="rtl" lang="ar">&#1604;&#1575;&#160;&#1571;&#1601;&#1607;&#1605;</kbd>",
    then the bidirectional algorithm will determine that the direction
-   of the paragraph is right-to-left, and so the output will be "<samp lang=""><bdo dir="rtl">&#1604;&#1575;&#160;&#1571;&#1601;&#1607;&#1605;!&#160;derF&#160;,kO,&#160;&#1604;&#1575;&#160;&#1571;&#1601;&#1607;&#1605;,&#160;rac&#160;eht&#160;teg&#160;lliw&#160;amliW&#160;dna.</bdo></samp>"!</p>
+   of the paragraph is right-to-left, and so the output will be the
+   following unintended mess: "<samp lang=""><bdo dir="rtl">&#1604;&#1575;&#160;&#1571;&#1601;&#1607;&#1605;!&#160;derF&#160;,kO,&#160;&#1604;&#1575;&#160;&#1571;&#1601;&#1607;&#1605;,&#160;rac&#160;eht&#160;teg&#160;lliw&#160;amliW&#160;dna.</bdo></samp>"</p>
 
-  </div>
+   <p>To force an alert that starts with user-provided text (or other
+   text of unknown directionality) to render left-to-right, the string
+   can be prefixed with a U+200E LEFT-TO-RIGHT MARK character:</p>
 
-  <p>When necessary, authors can enforce a particular direction for a
-  given paragraph by starting it with the Unicode U+200E LEFT-TO-RIGHT
-  MARK or U+200F RIGHT-TO-LEFT MARK characters.</p>
+   <pre>var s;
+if (s = prompt('What is your name?')) {
+  alert('<strong>\u200E</strong>' + s + '! Ok, Fred, ' + s + ', and Wilma will get the car.');
+}</pre>
+
+  </div>
 
 
 

Index: browsers.html
===================================================================
RCS file: /sources/public/html5/spec/browsers.html,v
retrieving revision 1.1024
retrieving revision 1.1025
diff -u -d -r1.1024 -r1.1025
--- browsers.html	5 Dec 2010 09:44:11 -0000	1.1024
+++ browsers.html	6 Dec 2010 22:46:41 -0000	1.1025
@@ -549,8 +549,10 @@
   <a href="#browsing-context">browsing context</a> <var title="">b</var> must return the
   <code><a href="#windowproxy">WindowProxy</a></code> object of its <a href="#top-level-browsing-context">top-level browsing
   context</a> (which would be its own <code><a href="#windowproxy">WindowProxy</a></code>
-  object if it was a <a href="#top-level-browsing-context">top-level browsing context</a>
-  itself).</p>
+  object if it was a <a href="#top-level-browsing-context">top-level browsing context</a> itself),
+  if it has one, or its own <code><a href="#windowproxy">WindowProxy</a></code> object otherwise
+  (e.g. if it was a detached <a href="#nested-browsing-context">nested browsing
+  context</a>).</p>
 
   <p>The <dfn id="dom-parent" title="dom-parent"><code>parent</code></dfn> IDL
   attribute on the <code><a href="#window">Window</a></code> object of a
@@ -559,7 +561,8 @@
   <var title="">b</var> is a <a href="#child-browsing-context">child browsing context</a>), or
   the <code><a href="#windowproxy">WindowProxy</a></code> object of the <a href="#browsing-context">browsing
   context</a> <var title="">b</var> itself, otherwise (i.e. if it
-  is a <a href="#top-level-browsing-context">top-level browsing context</a>).</p>
+  is a <a href="#top-level-browsing-context">top-level browsing context</a> or a detached
+  <a href="#nested-browsing-context">nested browsing context</a>).</p>
 
   <p>The <dfn id="dom-frameelement" title="dom-frameElement"><code>frameElement</code></dfn>
   IDL attribute on the <code><a href="#window">Window</a></code> object of a
@@ -567,11 +570,11 @@
   the following algorithm:</p>
 
   <ol><li><p>If <var title="">d</var> is not a <code><a href="infrastructure.html#document">Document</a></code> in a
-   <a href="#child-browsing-context">child browsing context</a>, return null and abort these
+   <a href="#nested-browsing-context">nested browsing context</a>, return null and abort these
    steps.</p></li>
 
-   <li><p>If the <a href="#parent-browsing-context">parent browsing context</a>'s <a href="#active-document">active
-   document</a> does not have the <a href="origin-0.html#same-origin" title="same
+   <li><p>If the <a href="#browsing-context-container">browsing context container</a>'s
+   <code><a href="infrastructure.html#document">Document</a></code> does not have the <a href="origin-0.html#same-origin" title="same
    origin">same</a> <a href="origin-0.html#effective-script-origin">effective script origin</a> as the
    <a href="#entry-script">entry script</a>, then throw a <code><a href="common-dom-interfaces.html#security_err">SECURITY_ERR</a></code>
    exception.</p></li>

Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec/spec.html,v
retrieving revision 1.1341
retrieving revision 1.1342
diff -u -d -r1.1341 -r1.1342
--- spec.html	2 Dec 2010 07:46:40 -0000	1.1341
+++ spec.html	6 Dec 2010 22:46:41 -0000	1.1342
@@ -385,7 +385,7 @@
     <a href="Overview.html">single page HTML</a>,
     <a href="spec.html">multipage HTML</a>,
     <a href="author/">web developer edition</a>.
-This is revision 1.4566.
+This is revision 1.4567.
    </p> 
      <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
    &#169; 2010 <a href="http://www.w3.org/"><abbr title="World Wide

Received on Monday, 6 December 2010 22:46:45 UTC