[html5] r6055 - [e] (0) xref Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12061

whatwg at whatwg.org whatwg at whatwg.org
Tue May 3 13:01:29 PDT 2011


Author: ianh
Date: 2011-05-03 13:01:28 -0700 (Tue, 03 May 2011)
New Revision: 6055

Modified:
   complete.html
   index
   source
Log:
[e] (0) xref
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12061

Modified: complete.html
===================================================================
--- complete.html	2011-05-03 19:54:01 UTC (rev 6054)
+++ complete.html	2011-05-03 20:01:28 UTC (rev 6055)
@@ -12816,7 +12816,7 @@
 
     <p>In either case, the algorithm must be invoked with the string
     being assigned into the <code title=dom-innerHTML><a href=#dom-innerhtml>innerHTML</a></code> attribute as the <var title="">input</var>. If the node is an <code><a href=#element>Element</a></code>
-    node, then, in addition, that element must be passed as the <var title="">context</var> element.</p>
+    node, then, in addition, that element must be passed as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -12954,7 +12954,7 @@
     parsing algorithm</a>.</p>
 
     <p>In either case, the algorithm must be invoked with the string
-    being assigned into the <code title=dom-outerHTML><a href=#dom-outerhtml>outerHTML</a></code> attribute as the <var title="">input</var>, and <var title="">parent</var> as the <var title="">context</var> element.</p>
+    being assigned into the <code title=dom-outerHTML><a href=#dom-outerhtml>outerHTML</a></code> attribute as the <var title="">input</var>, and <var title="">parent</var> as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -13087,8 +13087,7 @@
     documents">XML document</a>: Invoke the <a href=#xml-fragment-parsing-algorithm>XML fragment
     parsing algorithm</a>.</p>
 
-    <p>In either case, the algorithm must be invoked with <var title="">text</var> as the <var title="">input</var>, and <var title="">destination</var> as the <var title="">context</var>
-    element.</p>
+    <p>In either case, the algorithm must be invoked with <var title="">text</var> as the <var title="">input</var>, and <var title="">destination</var> as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -16280,10 +16279,13 @@
    <dd><p>The <code><a href=#the-noscript-element>noscript</a></code> element must contain only text,
    except that invoking the <a href=#html-fragment-parsing-algorithm>HTML fragment parsing
    algorithm</a> <!-- (which disables <script> execution) --> with
-   the <code><a href=#the-noscript-element>noscript</a></code> element as the <var title="">context</var> element and the text contents as the <var title="">input</var> must result in a list of nodes that consists
-   only of <code><a href=#the-link-element>link</a></code>, <code><a href=#the-style-element>style</a></code>, and
-   <code><a href=#the-meta-element>meta</a></code> elements that would be conforming if they were
-   children of the <code><a href=#the-noscript-element>noscript</a></code> element, and no <a href=#parse-error title="parse error">parse errors</a>.</dd>
+   the <code><a href=#the-noscript-element>noscript</a></code> element as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element and the
+   text contents as the <var title="">input</var> must result in a
+   list of nodes that consists only of <code><a href=#the-link-element>link</a></code>,
+   <code><a href=#the-style-element>style</a></code>, and <code><a href=#the-meta-element>meta</a></code> elements that would be
+   conforming if they were children of the <code><a href=#the-noscript-element>noscript</a></code>
+   element, and no <a href=#parse-error title="parse error">parse
+   errors</a>.</dd>
 
    <dt>Outside of <code><a href=#the-head-element>head</a></code> elements, if <a href=#concept-n-noscript title=concept-n-noscript>scripting is disabled</a> for the
    <code><a href=#the-noscript-element>noscript</a></code> element</dt>
@@ -24121,11 +24123,11 @@
   documents</a>, the allowed content model of <code><a href=#the-iframe-element>iframe</a></code>
   elements is text, except that invoking the <a href=#html-fragment-parsing-algorithm>HTML fragment
   parsing algorithm</a> with the <code><a href=#the-iframe-element>iframe</a></code> element as the
-  <var title="">context</var> element and the text contents as the
-  <var title="">input</var> must result in a list of nodes that are
-  all <a href=#phrasing-content>phrasing content</a>, with no <a href=#parse-error title="parse
-  error">parse errors</a> having occurred, with no
-  <code><a href=#the-script-element>script</a></code> elements being anywhere in the list or as
+  <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element and
+  the text contents as the <var title="">input</var> must result in a
+  list of nodes that are all <a href=#phrasing-content>phrasing content</a>, with no
+  <a href=#parse-error title="parse error">parse errors</a> having occurred, with
+  no <code><a href=#the-script-element>script</a></code> elements being anywhere in the list or as
   descendants of elements in the list, and with all the elements in
   the list (including their descendants) being themselves
   conforming.</p>
@@ -81494,7 +81496,8 @@
 
    <li><i>Loop</i>: If <var title="">node</var> is the first node in
    the stack of open elements, then set <var title="">last</var> to
-   true and set <var title="">node</var> to the <var title="">context</var> element. (<a href=#fragment-case>fragment case</a>)</li>
+   true and set <var title="">node</var> to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.
+   (<a href=#fragment-case>fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-select-element>select</a></code> element,
    then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inselect title="insertion mode: in select">in select</a>" and abort these
@@ -88577,18 +88580,19 @@
 
   <p>The following steps form the <dfn id=html-fragment-parsing-algorithm>HTML fragment parsing
   algorithm</dfn>. The algorithm optionally takes as input an
-  <code><a href=#element>Element</a></code> node, referred to as the <var title="">context</var> element, which gives the context for the
-  parser, as well as <var title="">input</var>, a string to parse, and
-  returns a list of zero or more nodes.</p>
+  <code><a href=#element>Element</a></code> node, referred to as the <dfn id=concept-frag-parse-context title=concept-frag-parse-context><var>context</var></dfn> element,
+  which gives the context for the parser, as well as <var title="">input</var>, a string to parse, and returns a list of zero
+  or more nodes.</p>
 
   <p class=note>Parts marked <dfn id=fragment-case>fragment case</dfn> in algorithms
   in the parser section are parts that only occur if the parser was
-  created for the purposes of this algorithm (and with a <var title="">context</var> element). The algorithms have been annotated
-  with such markings for informational purposes only; such markings
-  have no normative weight. If it is possible for a condition
-  described as a <a href=#fragment-case>fragment case</a> to occur even when the
-  parser wasn't created for the purposes of handling this algorithm,
-  then that is an error in the specification.</p>
+  created for the purposes of this algorithm (and with a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element). The
+  algorithms have been annotated with such markings for informational
+  purposes only; such markings have no normative weight. If it is
+  possible for a condition described as a <a href=#fragment-case>fragment case</a>
+  to occur even when the parser wasn't created for the purposes of
+  handling this algorithm, then that is an error in the
+  specification.</p>
 
   <ol><li>
 
@@ -88599,14 +88603,15 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, and the
-    <code><a href=#document>Document</a></code> of the <var title="">context</var> element
-    is in <a href=#quirks-mode>quirks mode</a>, then let the <code><a href=#document>Document</a></code>
-    be in <a href=#quirks-mode>quirks mode</a>. Otherwise, if there is a <var title="">context</var> element, and the <code><a href=#document>Document</a></code> of
-    the <var title="">context</var> element is in <a href=#limited-quirks-mode>limited-quirks
-    mode</a>, then let the <code><a href=#document>Document</a></code> be in
-    <a href=#limited-quirks-mode>limited-quirks mode</a>. Otherwise, leave the
-    <code><a href=#document>Document</a></code> in <a href=#no-quirks-mode>no-quirks mode</a>.</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, and the
+    <code><a href=#document>Document</a></code> of the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element is in
+    <a href=#quirks-mode>quirks mode</a>, then let the <code><a href=#document>Document</a></code> be in
+    <a href=#quirks-mode>quirks mode</a>. Otherwise, if there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, and the
+    <code><a href=#document>Document</a></code> of the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element is in
+    <a href=#limited-quirks-mode>limited-quirks mode</a>, then let the
+    <code><a href=#document>Document</a></code> be in <a href=#limited-quirks-mode>limited-quirks mode</a>.
+    Otherwise, leave the <code><a href=#document>Document</a></code> in <a href=#no-quirks-mode>no-quirks
+    mode</a>.</p>
 
    </li>
 
@@ -88619,8 +88624,8 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, run these
-    substeps:</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, run
+    these substeps:</p>
 
     <ol><li>
 
@@ -88699,16 +88704,17 @@
       <p><a href=#reset-the-insertion-mode-appropriately title="reset the insertion mode appropriately">Reset the
       parser's insertion mode appropriately</a>.</p>
 
-      <p class=note>The parser will reference the <var title="">context</var> element as part of that algorithm.</p>
+      <p class=note>The parser will reference the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element as part
+      of that algorithm.</p>
 
      </li>
 
      <li>
 
-      <p>Set the parser's <a href=#form-element-pointer><code>form</code> element pointer</a>
-      to the nearest node to the <var title="">context</var> element
-      that is a <code><a href=#the-form-element>form</a></code> element (going straight up the
-      ancestor chain, and including the element itself, if it is a
+      <p>Set the parser's <a href=#form-element-pointer><code>form</code> element
+      pointer</a> to the nearest node to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element that is
+      a <code><a href=#the-form-element>form</a></code> element (going straight up the ancestor
+      chain, and including the element itself, if it is a
       <code><a href=#the-form-element>form</a></code> element), or, if there is no such
       <code><a href=#the-form-element>form</a></code> element, to null.</p>
 
@@ -88734,8 +88740,8 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, return the
-    child nodes of <var title="">root</var>, in <a href=#tree-order>tree
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, return
+    the child nodes of <var title="">root</var>, in <a href=#tree-order>tree
     order</a>.</p>
 
     <p>Otherwise, return the children of the <code><a href=#document>Document</a></code>
@@ -89016,11 +89022,11 @@
 
   <h3 id=parsing-xhtml-fragments><span class=secno>14.4 </span>Parsing XHTML fragments</h3>
 
-  <p>The <dfn id=xml-fragment-parsing-algorithm>XML fragment parsing algorithm</dfn> either returns
-  a <code><a href=#document>Document</a></code> or raises a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
-  exception. Given a string <var title="">input</var> and an optional
-  context element <var title="">context</var>, the algorithm is as
-  follows:</p>
+  <p>The <dfn id=xml-fragment-parsing-algorithm>XML fragment parsing algorithm</dfn> either returns a
+  <code><a href=#document>Document</a></code> or raises a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.
+  Given a string <var title="">input</var> and an optional context
+  element <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var>, the
+  algorithm is as follows:</p>
 
   <ol><li>
 
@@ -89030,12 +89036,12 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, <a href=#feed-the-parser>feed
-    the parser</a> just created the string corresponding to the
-    start tag of that element, declaring all the namespace prefixes
-    that are in scope on that element in the DOM, as well as declaring
-    the default namespace (if any) that is in scope on that element in
-    the DOM.</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element,
+    <a href=#feed-the-parser>feed the parser</a> just created the string corresponding
+    to the start tag of that element, declaring all the namespace
+    prefixes that are in scope on that element in the DOM, as well as
+    declaring the default namespace (if any) that is in scope on that
+    element in the DOM.</p>
 
     <p>A namespace prefix is in scope if the DOM Core <code title="">lookupNamespaceURI()</code> method on the element would
     return a non-null value for that prefix.</p>
@@ -89044,10 +89050,9 @@
     <code title="">isDefaultNamespace()</code> method on the element
     would return true.</p>
 
-    <p class=note>If there is a <var title="">context</var> element,
-    no <code title="">DOCTYPE</code> is passed to the parser, and
-    therefore no external subset is referenced, and therefore no
-    entities will be recognized.</p>
+    <p class=note>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, no <code title="">DOCTYPE</code> is passed to the parser, and therefore no
+    external subset is referenced, and therefore no entities will be
+    recognized.</p>
 
    </li>
 
@@ -89059,9 +89064,9 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, <a href=#feed-the-parser>feed
-    the parser</a> just created the string corresponding to the
-    end tag of that element.</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element,
+    <a href=#feed-the-parser>feed the parser</a> just created the string corresponding
+    to the end tag of that element.</p>
 
    </li>
 
@@ -89075,8 +89080,8 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, then return
-    the child nodes of the root element of the resulting
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, then
+    return the child nodes of the root element of the resulting
     <code><a href=#document>Document</a></code>, in <a href=#tree-order>tree order</a>.</p>
 
     <p>Otherwise, return the children of the <code><a href=#document>Document</a></code>

Modified: index
===================================================================
--- index	2011-05-03 19:54:01 UTC (rev 6054)
+++ index	2011-05-03 20:01:28 UTC (rev 6055)
@@ -12842,7 +12842,7 @@
 
     <p>In either case, the algorithm must be invoked with the string
     being assigned into the <code title=dom-innerHTML><a href=#dom-innerhtml>innerHTML</a></code> attribute as the <var title="">input</var>. If the node is an <code><a href=#element>Element</a></code>
-    node, then, in addition, that element must be passed as the <var title="">context</var> element.</p>
+    node, then, in addition, that element must be passed as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -12980,7 +12980,7 @@
     parsing algorithm</a>.</p>
 
     <p>In either case, the algorithm must be invoked with the string
-    being assigned into the <code title=dom-outerHTML><a href=#dom-outerhtml>outerHTML</a></code> attribute as the <var title="">input</var>, and <var title="">parent</var> as the <var title="">context</var> element.</p>
+    being assigned into the <code title=dom-outerHTML><a href=#dom-outerhtml>outerHTML</a></code> attribute as the <var title="">input</var>, and <var title="">parent</var> as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -13113,8 +13113,7 @@
     documents">XML document</a>: Invoke the <a href=#xml-fragment-parsing-algorithm>XML fragment
     parsing algorithm</a>.</p>
 
-    <p>In either case, the algorithm must be invoked with <var title="">text</var> as the <var title="">input</var>, and <var title="">destination</var> as the <var title="">context</var>
-    element.</p>
+    <p>In either case, the algorithm must be invoked with <var title="">text</var> as the <var title="">input</var>, and <var title="">destination</var> as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -16306,10 +16305,13 @@
    <dd><p>The <code><a href=#the-noscript-element>noscript</a></code> element must contain only text,
    except that invoking the <a href=#html-fragment-parsing-algorithm>HTML fragment parsing
    algorithm</a> <!-- (which disables <script> execution) --> with
-   the <code><a href=#the-noscript-element>noscript</a></code> element as the <var title="">context</var> element and the text contents as the <var title="">input</var> must result in a list of nodes that consists
-   only of <code><a href=#the-link-element>link</a></code>, <code><a href=#the-style-element>style</a></code>, and
-   <code><a href=#the-meta-element>meta</a></code> elements that would be conforming if they were
-   children of the <code><a href=#the-noscript-element>noscript</a></code> element, and no <a href=#parse-error title="parse error">parse errors</a>.</dd>
+   the <code><a href=#the-noscript-element>noscript</a></code> element as the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element and the
+   text contents as the <var title="">input</var> must result in a
+   list of nodes that consists only of <code><a href=#the-link-element>link</a></code>,
+   <code><a href=#the-style-element>style</a></code>, and <code><a href=#the-meta-element>meta</a></code> elements that would be
+   conforming if they were children of the <code><a href=#the-noscript-element>noscript</a></code>
+   element, and no <a href=#parse-error title="parse error">parse
+   errors</a>.</dd>
 
    <dt>Outside of <code><a href=#the-head-element>head</a></code> elements, if <a href=#concept-n-noscript title=concept-n-noscript>scripting is disabled</a> for the
    <code><a href=#the-noscript-element>noscript</a></code> element</dt>
@@ -24150,11 +24152,11 @@
   documents</a>, the allowed content model of <code><a href=#the-iframe-element>iframe</a></code>
   elements is text, except that invoking the <a href=#html-fragment-parsing-algorithm>HTML fragment
   parsing algorithm</a> with the <code><a href=#the-iframe-element>iframe</a></code> element as the
-  <var title="">context</var> element and the text contents as the
-  <var title="">input</var> must result in a list of nodes that are
-  all <a href=#phrasing-content>phrasing content</a>, with no <a href=#parse-error title="parse
-  error">parse errors</a> having occurred, with no
-  <code><a href=#the-script-element>script</a></code> elements being anywhere in the list or as
+  <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element and
+  the text contents as the <var title="">input</var> must result in a
+  list of nodes that are all <a href=#phrasing-content>phrasing content</a>, with no
+  <a href=#parse-error title="parse error">parse errors</a> having occurred, with
+  no <code><a href=#the-script-element>script</a></code> elements being anywhere in the list or as
   descendants of elements in the list, and with all the elements in
   the list (including their descendants) being themselves
   conforming.</p>
@@ -77476,7 +77478,8 @@
 
    <li><i>Loop</i>: If <var title="">node</var> is the first node in
    the stack of open elements, then set <var title="">last</var> to
-   true and set <var title="">node</var> to the <var title="">context</var> element. (<a href=#fragment-case>fragment case</a>)</li>
+   true and set <var title="">node</var> to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element.
+   (<a href=#fragment-case>fragment case</a>)</li>
 
    <li>If <var title="">node</var> is a <code><a href=#the-select-element>select</a></code> element,
    then switch the <a href=#insertion-mode>insertion mode</a> to "<a href=#parsing-main-inselect title="insertion mode: in select">in select</a>" and abort these
@@ -84559,18 +84562,19 @@
 
   <p>The following steps form the <dfn id=html-fragment-parsing-algorithm>HTML fragment parsing
   algorithm</dfn>. The algorithm optionally takes as input an
-  <code><a href=#element>Element</a></code> node, referred to as the <var title="">context</var> element, which gives the context for the
-  parser, as well as <var title="">input</var>, a string to parse, and
-  returns a list of zero or more nodes.</p>
+  <code><a href=#element>Element</a></code> node, referred to as the <dfn id=concept-frag-parse-context title=concept-frag-parse-context><var>context</var></dfn> element,
+  which gives the context for the parser, as well as <var title="">input</var>, a string to parse, and returns a list of zero
+  or more nodes.</p>
 
   <p class=note>Parts marked <dfn id=fragment-case>fragment case</dfn> in algorithms
   in the parser section are parts that only occur if the parser was
-  created for the purposes of this algorithm (and with a <var title="">context</var> element). The algorithms have been annotated
-  with such markings for informational purposes only; such markings
-  have no normative weight. If it is possible for a condition
-  described as a <a href=#fragment-case>fragment case</a> to occur even when the
-  parser wasn't created for the purposes of handling this algorithm,
-  then that is an error in the specification.</p>
+  created for the purposes of this algorithm (and with a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element). The
+  algorithms have been annotated with such markings for informational
+  purposes only; such markings have no normative weight. If it is
+  possible for a condition described as a <a href=#fragment-case>fragment case</a>
+  to occur even when the parser wasn't created for the purposes of
+  handling this algorithm, then that is an error in the
+  specification.</p>
 
   <ol><li>
 
@@ -84581,14 +84585,15 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, and the
-    <code><a href=#document>Document</a></code> of the <var title="">context</var> element
-    is in <a href=#quirks-mode>quirks mode</a>, then let the <code><a href=#document>Document</a></code>
-    be in <a href=#quirks-mode>quirks mode</a>. Otherwise, if there is a <var title="">context</var> element, and the <code><a href=#document>Document</a></code> of
-    the <var title="">context</var> element is in <a href=#limited-quirks-mode>limited-quirks
-    mode</a>, then let the <code><a href=#document>Document</a></code> be in
-    <a href=#limited-quirks-mode>limited-quirks mode</a>. Otherwise, leave the
-    <code><a href=#document>Document</a></code> in <a href=#no-quirks-mode>no-quirks mode</a>.</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, and the
+    <code><a href=#document>Document</a></code> of the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element is in
+    <a href=#quirks-mode>quirks mode</a>, then let the <code><a href=#document>Document</a></code> be in
+    <a href=#quirks-mode>quirks mode</a>. Otherwise, if there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, and the
+    <code><a href=#document>Document</a></code> of the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element is in
+    <a href=#limited-quirks-mode>limited-quirks mode</a>, then let the
+    <code><a href=#document>Document</a></code> be in <a href=#limited-quirks-mode>limited-quirks mode</a>.
+    Otherwise, leave the <code><a href=#document>Document</a></code> in <a href=#no-quirks-mode>no-quirks
+    mode</a>.</p>
 
    </li>
 
@@ -84601,8 +84606,8 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, run these
-    substeps:</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, run
+    these substeps:</p>
 
     <ol><li>
 
@@ -84681,16 +84686,17 @@
       <p><a href=#reset-the-insertion-mode-appropriately title="reset the insertion mode appropriately">Reset the
       parser's insertion mode appropriately</a>.</p>
 
-      <p class=note>The parser will reference the <var title="">context</var> element as part of that algorithm.</p>
+      <p class=note>The parser will reference the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element as part
+      of that algorithm.</p>
 
      </li>
 
      <li>
 
-      <p>Set the parser's <a href=#form-element-pointer><code>form</code> element pointer</a>
-      to the nearest node to the <var title="">context</var> element
-      that is a <code><a href=#the-form-element>form</a></code> element (going straight up the
-      ancestor chain, and including the element itself, if it is a
+      <p>Set the parser's <a href=#form-element-pointer><code>form</code> element
+      pointer</a> to the nearest node to the <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element that is
+      a <code><a href=#the-form-element>form</a></code> element (going straight up the ancestor
+      chain, and including the element itself, if it is a
       <code><a href=#the-form-element>form</a></code> element), or, if there is no such
       <code><a href=#the-form-element>form</a></code> element, to null.</p>
 
@@ -84716,8 +84722,8 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, return the
-    child nodes of <var title="">root</var>, in <a href=#tree-order>tree
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, return
+    the child nodes of <var title="">root</var>, in <a href=#tree-order>tree
     order</a>.</p>
 
     <p>Otherwise, return the children of the <code><a href=#document>Document</a></code>
@@ -84998,11 +85004,11 @@
 
   <h3 id=parsing-xhtml-fragments><span class=secno>12.4 </span>Parsing XHTML fragments</h3>
 
-  <p>The <dfn id=xml-fragment-parsing-algorithm>XML fragment parsing algorithm</dfn> either returns
-  a <code><a href=#document>Document</a></code> or raises a <code><a href=#syntax_err>SYNTAX_ERR</a></code>
-  exception. Given a string <var title="">input</var> and an optional
-  context element <var title="">context</var>, the algorithm is as
-  follows:</p>
+  <p>The <dfn id=xml-fragment-parsing-algorithm>XML fragment parsing algorithm</dfn> either returns a
+  <code><a href=#document>Document</a></code> or raises a <code><a href=#syntax_err>SYNTAX_ERR</a></code> exception.
+  Given a string <var title="">input</var> and an optional context
+  element <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var>, the
+  algorithm is as follows:</p>
 
   <ol><li>
 
@@ -85012,12 +85018,12 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, <a href=#feed-the-parser>feed
-    the parser</a> just created the string corresponding to the
-    start tag of that element, declaring all the namespace prefixes
-    that are in scope on that element in the DOM, as well as declaring
-    the default namespace (if any) that is in scope on that element in
-    the DOM.</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element,
+    <a href=#feed-the-parser>feed the parser</a> just created the string corresponding
+    to the start tag of that element, declaring all the namespace
+    prefixes that are in scope on that element in the DOM, as well as
+    declaring the default namespace (if any) that is in scope on that
+    element in the DOM.</p>
 
     <p>A namespace prefix is in scope if the DOM Core <code title="">lookupNamespaceURI()</code> method on the element would
     return a non-null value for that prefix.</p>
@@ -85026,10 +85032,9 @@
     <code title="">isDefaultNamespace()</code> method on the element
     would return true.</p>
 
-    <p class=note>If there is a <var title="">context</var> element,
-    no <code title="">DOCTYPE</code> is passed to the parser, and
-    therefore no external subset is referenced, and therefore no
-    entities will be recognized.</p>
+    <p class=note>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, no <code title="">DOCTYPE</code> is passed to the parser, and therefore no
+    external subset is referenced, and therefore no entities will be
+    recognized.</p>
 
    </li>
 
@@ -85041,9 +85046,9 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, <a href=#feed-the-parser>feed
-    the parser</a> just created the string corresponding to the
-    end tag of that element.</p>
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element,
+    <a href=#feed-the-parser>feed the parser</a> just created the string corresponding
+    to the end tag of that element.</p>
 
    </li>
 
@@ -85057,8 +85062,8 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, then return
-    the child nodes of the root element of the resulting
+    <p>If there is a <var title=concept-frag-parse-context><a href=#concept-frag-parse-context>context</a></var> element, then
+    return the child nodes of the root element of the resulting
     <code><a href=#document>Document</a></code>, in <a href=#tree-order>tree order</a>.</p>
 
     <p>Otherwise, return the children of the <code><a href=#document>Document</a></code>

Modified: source
===================================================================
--- source	2011-05-03 19:54:01 UTC (rev 6054)
+++ source	2011-05-03 20:01:28 UTC (rev 6055)
@@ -13493,7 +13493,7 @@
     title="dom-innerHTML">innerHTML</code> attribute as the <var
     title="">input</var>. If the node is an <code>Element</code>
     node, then, in addition, that element must be passed as the <var
-    title="">context</var> element.</p>
+    title="concept-frag-parse-context">context</var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -13649,7 +13649,7 @@
     being assigned into the <code
     title="dom-outerHTML">outerHTML</code> attribute as the <var
     title="">input</var>, and <var title="">parent</var> as the <var
-    title="">context</var> element.</p>
+    title="concept-frag-parse-context">context</var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -13805,8 +13805,8 @@
 
     <p>In either case, the algorithm must be invoked with <var
     title="">text</var> as the <var title="">input</var>, and <var
-    title="">destination</var> as the <var title="">context</var>
-    element.</p>
+    title="">destination</var> as the <var
+    title="concept-frag-parse-context">context</var> element.</p>
 
     <p>If this raises an exception, then abort these steps.</p>
 
@@ -17473,12 +17473,13 @@
    except that invoking the <span>HTML fragment parsing
    algorithm</span> <!-- (which disables <script> execution) --> with
    the <code>noscript</code> element as the <var
-   title="">context</var> element and the text contents as the <var
-   title="">input</var> must result in a list of nodes that consists
-   only of <code>link</code>, <code>style</code>, and
-   <code>meta</code> elements that would be conforming if they were
-   children of the <code>noscript</code> element, and no <span
-   title="parse error">parse errors</span>.</p></dd>
+   title="concept-frag-parse-context">context</var> element and the
+   text contents as the <var title="">input</var> must result in a
+   list of nodes that consists only of <code>link</code>,
+   <code>style</code>, and <code>meta</code> elements that would be
+   conforming if they were children of the <code>noscript</code>
+   element, and no <span title="parse error">parse
+   errors</span>.</p></dd>
 
    <dt>Outside of <code>head</code> elements, if <span
    title="concept-n-noscript">scripting is disabled</span> for the
@@ -25999,11 +26000,11 @@
   documents</span>, the allowed content model of <code>iframe</code>
   elements is text, except that invoking the <span>HTML fragment
   parsing algorithm</span> with the <code>iframe</code> element as the
-  <var title="">context</var> element and the text contents as the
-  <var title="">input</var> must result in a list of nodes that are
-  all <span>phrasing content</span>, with no <span title="parse
-  error">parse errors</span> having occurred, with no
-  <code>script</code> elements being anywhere in the list or as
+  <var title="concept-frag-parse-context">context</var> element and
+  the text contents as the <var title="">input</var> must result in a
+  list of nodes that are all <span>phrasing content</span>, with no
+  <span title="parse error">parse errors</span> having occurred, with
+  no <code>script</code> elements being anywhere in the list or as
   descendants of elements in the list, and with all the elements in
   the list (including their descendants) being themselves
   conforming.</p>
@@ -92511,7 +92512,8 @@
    <li><i>Loop</i>: If <var title="">node</var> is the first node in
    the stack of open elements, then set <var title="">last</var> to
    true and set <var title="">node</var> to the <var
-   title="">context</var> element. (<span>fragment case</span>)</li>
+   title="concept-frag-parse-context">context</var> element.
+   (<span>fragment case</span>)</li>
 
    <li>If <var title="">node</var> is a <code>select</code> element,
    then switch the <span>insertion mode</span> to "<span
@@ -100499,20 +100501,22 @@
 
   <p>The following steps form the <dfn>HTML fragment parsing
   algorithm</dfn>. The algorithm optionally takes as input an
-  <code>Element</code> node, referred to as the <var
-  title="">context</var> element, which gives the context for the
-  parser, as well as <var title="">input</var>, a string to parse, and
-  returns a list of zero or more nodes.</p>
+  <code>Element</code> node, referred to as the <dfn
+  title="concept-frag-parse-context"><var>context</var></dfn> element,
+  which gives the context for the parser, as well as <var
+  title="">input</var>, a string to parse, and returns a list of zero
+  or more nodes.</p>
 
   <p class="note">Parts marked <dfn>fragment case</dfn> in algorithms
   in the parser section are parts that only occur if the parser was
   created for the purposes of this algorithm (and with a <var
-  title="">context</var> element). The algorithms have been annotated
-  with such markings for informational purposes only; such markings
-  have no normative weight. If it is possible for a condition
-  described as a <span>fragment case</span> to occur even when the
-  parser wasn't created for the purposes of handling this algorithm,
-  then that is an error in the specification.</p>
+  title="concept-frag-parse-context">context</var> element). The
+  algorithms have been annotated with such markings for informational
+  purposes only; such markings have no normative weight. If it is
+  possible for a condition described as a <span>fragment case</span>
+  to occur even when the parser wasn't created for the purposes of
+  handling this algorithm, then that is an error in the
+  specification.</p>
 
   <ol>
 
@@ -100525,15 +100529,19 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, and the
-    <code>Document</code> of the <var title="">context</var> element
-    is in <span>quirks mode</span>, then let the <code>Document</code>
-    be in <span>quirks mode</span>. Otherwise, if there is a <var
-    title="">context</var> element, and the <code>Document</code> of
-    the <var title="">context</var> element is in <span>limited-quirks
-    mode</span>, then let the <code>Document</code> be in
-    <span>limited-quirks mode</span>. Otherwise, leave the
-    <code>Document</code> in <span>no-quirks mode</span>.</p>
+    <p>If there is a <var
+    title="concept-frag-parse-context">context</var> element, and the
+    <code>Document</code> of the <var
+    title="concept-frag-parse-context">context</var> element is in
+    <span>quirks mode</span>, then let the <code>Document</code> be in
+    <span>quirks mode</span>. Otherwise, if there is a <var
+    title="concept-frag-parse-context">context</var> element, and the
+    <code>Document</code> of the <var
+    title="concept-frag-parse-context">context</var> element is in
+    <span>limited-quirks mode</span>, then let the
+    <code>Document</code> be in <span>limited-quirks mode</span>.
+    Otherwise, leave the <code>Document</code> in <span>no-quirks
+    mode</span>.</p>
 
    </li>
 
@@ -100546,8 +100554,9 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, run these
-    substeps:</p>
+    <p>If there is a <var
+    title="concept-frag-parse-context">context</var> element, run
+    these substeps:</p>
 
     <ol>
 
@@ -100633,16 +100642,18 @@
       parser's insertion mode appropriately</span>.</p>
 
       <p class="note">The parser will reference the <var
-      title="">context</var> element as part of that algorithm.</p>
+      title="concept-frag-parse-context">context</var> element as part
+      of that algorithm.</p>
 
      </li>
 
      <li>
 
-      <p>Set the parser's <span><code>form</code> element pointer</span>
-      to the nearest node to the <var title="">context</var> element
-      that is a <code>form</code> element (going straight up the
-      ancestor chain, and including the element itself, if it is a
+      <p>Set the parser's <span><code>form</code> element
+      pointer</span> to the nearest node to the <var
+      title="concept-frag-parse-context">context</var> element that is
+      a <code>form</code> element (going straight up the ancestor
+      chain, and including the element itself, if it is a
       <code>form</code> element), or, if there is no such
       <code>form</code> element, to null.</p>
 
@@ -100671,8 +100682,9 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, return the
-    child nodes of <var title="">root</var>, in <span>tree
+    <p>If there is a <var
+    title="concept-frag-parse-context">context</var> element, return
+    the child nodes of <var title="">root</var>, in <span>tree
     order</span>.</p>
 
     <p>Otherwise, return the children of the <code>Document</code>
@@ -100991,11 +101003,11 @@
 
   <h3>Parsing XHTML fragments</h3>
 
-  <p>The <dfn>XML fragment parsing algorithm</dfn> either returns
-  a <code>Document</code> or raises a <code>SYNTAX_ERR</code>
-  exception. Given a string <var title="">input</var> and an optional
-  context element <var title="">context</var>, the algorithm is as
-  follows:</p>
+  <p>The <dfn>XML fragment parsing algorithm</dfn> either returns a
+  <code>Document</code> or raises a <code>SYNTAX_ERR</code> exception.
+  Given a string <var title="">input</var> and an optional context
+  element <var title="concept-frag-parse-context">context</var>, the
+  algorithm is as follows:</p>
 
   <ol>
 
@@ -101007,12 +101019,13 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, <span>feed
-    the parser</span> just created the string corresponding to the
-    start tag of that element, declaring all the namespace prefixes
-    that are in scope on that element in the DOM, as well as declaring
-    the default namespace (if any) that is in scope on that element in
-    the DOM.</p>
+    <p>If there is a <var
+    title="concept-frag-parse-context">context</var> element,
+    <span>feed the parser</span> just created the string corresponding
+    to the start tag of that element, declaring all the namespace
+    prefixes that are in scope on that element in the DOM, as well as
+    declaring the default namespace (if any) that is in scope on that
+    element in the DOM.</p>
 
     <p>A namespace prefix is in scope if the DOM Core <code
     title="">lookupNamespaceURI()</code> method on the element would
@@ -101022,10 +101035,11 @@
     <code title="">isDefaultNamespace()</code> method on the element
     would return true.</p>
 
-    <p class="note">If there is a <var title="">context</var> element,
-    no <code title="">DOCTYPE</code> is passed to the parser, and
-    therefore no external subset is referenced, and therefore no
-    entities will be recognized.</p>
+    <p class="note">If there is a <var
+    title="concept-frag-parse-context">context</var> element, no <code
+    title="">DOCTYPE</code> is passed to the parser, and therefore no
+    external subset is referenced, and therefore no entities will be
+    recognized.</p>
 
    </li>
 
@@ -101038,9 +101052,10 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, <span>feed
-    the parser</span> just created the string corresponding to the
-    end tag of that element.</p>
+    <p>If there is a <var
+    title="concept-frag-parse-context">context</var> element,
+    <span>feed the parser</span> just created the string corresponding
+    to the end tag of that element.</p>
 
    </li>
 
@@ -101054,8 +101069,9 @@
 
    <li>
 
-    <p>If there is a <var title="">context</var> element, then return
-    the child nodes of the root element of the resulting
+    <p>If there is a <var
+    title="concept-frag-parse-context">context</var> element, then
+    return the child nodes of the root element of the resulting
     <code>Document</code>, in <span>tree order</span>.</p>
 
     <p>Otherwise, return the children of the <code>Document</code>




More information about the Commit-Watchers mailing list