Skip to content

Commit

Permalink
[cgiowt] (3) Clarify what the start tag of the context node is when p…
Browse files Browse the repository at this point in the history
…arsing

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26783
Affected topics: HTML Syntax and Parsing

git-svn-id: https://svn.whatwg.org/webapps@8805 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 22, 2014
1 parent fb522b6 commit d1b1667
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
14 changes: 11 additions & 3 deletions complete.html
Expand Up @@ -77262,17 +77262,25 @@ <h3 id=parsing-html-fragments>12.4 Parsing HTML fragments</h3>
template</a>" onto the <a href=#stack-of-template-insertion-modes id=parsing-html-fragments:stack-of-template-insertion-modes>stack of template insertion modes</a> so that it is the new
<a href=#current-template-insertion-mode id=parsing-html-fragments:current-template-insertion-mode>current template insertion mode</a>.</p>

<li>

<p>Create a start tag token whose name is the local name of <var id=parsing-html-fragments:concept-frag-parse-context-8><a href=#concept-frag-parse-context>context</a></var> and whose attributes are the attributes of
<var id=parsing-html-fragments:concept-frag-parse-context-9><a href=#concept-frag-parse-context>context</a></var>.</p>

<p>Let this start tag token be the start tag token of the <var id=parsing-html-fragments:concept-frag-parse-context-10><a href=#concept-frag-parse-context>context</a></var> node, e.g. for the purposes of determining
if it is an <a href=#html-integration-point id=parsing-html-fragments:html-integration-point>HTML integration point</a>.</p>

<li>

<p><a href=#reset-the-insertion-mode-appropriately id=parsing-html-fragments:reset-the-insertion-mode-appropriately>Reset the parser's insertion mode
appropriately</a>.</p>

<p class=note>The parser will reference the <var id=parsing-html-fragments:concept-frag-parse-context-8><a href=#concept-frag-parse-context>context</a></var> element as part of that algorithm.</p>
<p class=note>The parser will reference the <var id=parsing-html-fragments:concept-frag-parse-context-11><a href=#concept-frag-parse-context>context</a></var> element as part of that algorithm.</p>

<li>

<p>Set the parser's <a href=#form-element-pointer id=parsing-html-fragments:form-element-pointer><code>form</code> element pointer</a> to the nearest node to the
<var id=parsing-html-fragments:concept-frag-parse-context-9><a href=#concept-frag-parse-context>context</a></var> element that is a <code id=parsing-html-fragments:the-form-element><a href=#the-form-element>form</a></code>
<var id=parsing-html-fragments:concept-frag-parse-context-12><a href=#concept-frag-parse-context>context</a></var> element that is a <code id=parsing-html-fragments:the-form-element><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 id=parsing-html-fragments:the-form-element-2><a href=#the-form-element>form</a></code> element), if any. (If there is no such <code id=parsing-html-fragments:the-form-element-3><a href=#the-form-element>form</a></code> element, the
<a href=#form-element-pointer id=parsing-html-fragments:form-element-pointer-2><code>form</code> element pointer</a> keeps its initial value, null.)</p>
Expand All @@ -77291,7 +77299,7 @@ <h3 id=parsing-html-fragments>12.4 Parsing HTML fragments</h3>

<li>

<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-10><a href=#concept-frag-parse-context>context</a></var> element, return the child
<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-13><a href=#concept-frag-parse-context>context</a></var> element, return the child
nodes of <var>root</var>, in <a href=#tree-order id=parsing-html-fragments:tree-order>tree order</a>.</p>

<p>Otherwise, return the children of the <code id=parsing-html-fragments:document-7><a href=#document>Document</a></code> object, in <a href=#tree-order id=parsing-html-fragments:tree-order-2>tree
Expand Down
14 changes: 11 additions & 3 deletions index
Expand Up @@ -77262,17 +77262,25 @@ document.body.appendChild(text);
template</a>" onto the <a href=#stack-of-template-insertion-modes id=parsing-html-fragments:stack-of-template-insertion-modes>stack of template insertion modes</a> so that it is the new
<a href=#current-template-insertion-mode id=parsing-html-fragments:current-template-insertion-mode>current template insertion mode</a>.</p>

<li>

<p>Create a start tag token whose name is the local name of <var id=parsing-html-fragments:concept-frag-parse-context-8><a href=#concept-frag-parse-context>context</a></var> and whose attributes are the attributes of
<var id=parsing-html-fragments:concept-frag-parse-context-9><a href=#concept-frag-parse-context>context</a></var>.</p>

<p>Let this start tag token be the start tag token of the <var id=parsing-html-fragments:concept-frag-parse-context-10><a href=#concept-frag-parse-context>context</a></var> node, e.g. for the purposes of determining
if it is an <a href=#html-integration-point id=parsing-html-fragments:html-integration-point>HTML integration point</a>.</p>

<li>

<p><a href=#reset-the-insertion-mode-appropriately id=parsing-html-fragments:reset-the-insertion-mode-appropriately>Reset the parser's insertion mode
appropriately</a>.</p>

<p class=note>The parser will reference the <var id=parsing-html-fragments:concept-frag-parse-context-8><a href=#concept-frag-parse-context>context</a></var> element as part of that algorithm.</p>
<p class=note>The parser will reference the <var id=parsing-html-fragments:concept-frag-parse-context-11><a href=#concept-frag-parse-context>context</a></var> element as part of that algorithm.</p>

<li>

<p>Set the parser's <a href=#form-element-pointer id=parsing-html-fragments:form-element-pointer><code>form</code> element pointer</a> to the nearest node to the
<var id=parsing-html-fragments:concept-frag-parse-context-9><a href=#concept-frag-parse-context>context</a></var> element that is a <code id=parsing-html-fragments:the-form-element><a href=#the-form-element>form</a></code>
<var id=parsing-html-fragments:concept-frag-parse-context-12><a href=#concept-frag-parse-context>context</a></var> element that is a <code id=parsing-html-fragments:the-form-element><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 id=parsing-html-fragments:the-form-element-2><a href=#the-form-element>form</a></code> element), if any. (If there is no such <code id=parsing-html-fragments:the-form-element-3><a href=#the-form-element>form</a></code> element, the
<a href=#form-element-pointer id=parsing-html-fragments:form-element-pointer-2><code>form</code> element pointer</a> keeps its initial value, null.)</p>
Expand All @@ -77291,7 +77299,7 @@ document.body.appendChild(text);

<li>

<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-10><a href=#concept-frag-parse-context>context</a></var> element, return the child
<p>If there is a <var id=parsing-html-fragments:concept-frag-parse-context-13><a href=#concept-frag-parse-context>context</a></var> element, return the child
nodes of <var>root</var>, in <a href=#tree-order id=parsing-html-fragments:tree-order>tree order</a>.</p>

<p>Otherwise, return the children of the <code id=parsing-html-fragments:document-7><a href=#document>Document</a></code> object, in <a href=#tree-order id=parsing-html-fragments:tree-order-2>tree
Expand Down
12 changes: 12 additions & 0 deletions source
Expand Up @@ -105667,6 +105667,18 @@ document.body.appendChild(text);

</li>

<li>

<p>Create a start tag token whose name is the local name of <var
data-x="concept-frag-parse-context">context</var> and whose attributes are the attributes of
<var data-x="concept-frag-parse-context">context</var>.</p>

<p>Let this start tag token be the start tag token of the <var
data-x="concept-frag-parse-context">context</var> node, e.g. for the purposes of determining
if it is an <span>HTML integration point</span>.</p>

</li>

<li>

<p><span data-x="reset the insertion mode appropriately">Reset the parser's insertion mode
Expand Down

0 comments on commit d1b1667

Please sign in to comment.