Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ac] (0) Revamp the 'interactive content' definitions so they make se…
…nse.

git-svn-id: http://svn.whatwg.org/webapps@2018 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 5, 2008
1 parent 619bdba commit 4e65ed4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
30 changes: 18 additions & 12 deletions index
Expand Up @@ -17654,6 +17654,10 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>

<dd><a href="#embedded1">Embedded content</a>.

<dd>If the element has a <code title=attr-media-controls><a
href="#controls">controls</a></code> attribute: <a
href="#interactive1">Interactive content</a>.

<dt>Contexts in which this element may be used:

<dd>Where <a href="#embedded1">embedded content</a> is expected.
Expand Down Expand Up @@ -17991,6 +17995,10 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>

<dd><a href="#embedded1">Embedded content</a>.

<dd>If the element has a <code title=attr-media-controls><a
href="#controls">controls</a></code> attribute: <a
href="#interactive1">Interactive content</a>.

<dt>Contexts in which this element may be used:

<dd>Where <a href="#embedded1">embedded content</a> is expected.
Expand Down Expand Up @@ -26718,6 +26726,8 @@ function AddCloud(data, x, y) { ... }</pre>

<dd><a href="#flow-content0">Flow content</a>.

<dd><a href="#interactive1">Interactive content</a>.

<dt>Contexts in which this element may be used:

<dd>Where <a href="#flow-content0">flow content</a> is expected.
Expand Down Expand Up @@ -26850,13 +26860,6 @@ https://www.google.com/base/settings
enter key, etc).</p>
<!-- XXXPA -->

<p class=big-issue>This element is defined as interactive, which means it
can't contain other interactive elements, despite the fact that we expect
it to work with other interactive elements e.g. checkboxes and input
fields. It should be called something like a Leaf Interactive Element or
something, which counts for ancestors looking in and not descendants
looking out.

<p>The <code><a href="#datagrid0">datagrid</a></code> element represents an
interactive representation of tree, list, or tabular data.

Expand Down Expand Up @@ -29088,9 +29091,10 @@ XXX selection ranges -->

<dd>Where <a href="#phrasing0">phrasing content</a> is expected.

<dt><a href="#phrasing0">Phrasing content</a>.
<dt>Content model:

<dd>Empty.
<dd><a href="#phrasing0">Phrasing content</a>, but there must be no <a
href="#interactive1">interactive content</a> descendant.

<dt>Element-specific attributes:

Expand Down Expand Up @@ -29277,6 +29281,11 @@ menu li:not(:first-child)::before { content: ' | '; }</pre>

<dd><a href="#flow-content0">Flow content</a>.

<dd>If the element's <code title=attr-menu-type><a
href="#type17">type</a></code> attribute is in the <a href="#tool-bar"
title="tool bar state">tool bar</a> state: <a
href="#interactive1">Interactive content</a>.

<dd>If there is a <code><a href="#menu">menu</a></code> element ancestor:
<a href="#phrasing0">phrasing content</a>.

Expand Down Expand Up @@ -55578,9 +55587,6 @@ define implied <html>, <head>, <body>, <p>, </p>, etc.
http://www.aujsproduction.com/samples/wishlist/revampedselector.asp


interactive elements can't be nested (as in <a><button><input></button></a>)


need a summary of all the content models and how they interact:
a | interactive strictly inline-level element | where inline-level content is expected | strictly inline-level content | interactive elements must not be nested
i | strictly inline-level element | where inline-level content is expected | strictly inline-level content |
Expand Down
18 changes: 6 additions & 12 deletions source
Expand Up @@ -15203,6 +15203,7 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<dl class="element">
<dt>Categories</dt>
<dd><span>Embedded content</span>.</dd>
<dd>If the element has a <code title="attr-media-controls">controls</code> attribute: <span>Interactive content</span>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <span>embedded content</span> is expected.</dd>
<dt>Content model:</dt>
Expand Down Expand Up @@ -15523,6 +15524,7 @@ href="?audio">audio&lt;/a> test instead.)&lt;/p></pre>
<dl class="element">
<dt>Categories</dt>
<dd><span>Embedded content</span>.</dd>
<dd>If the element has a <code title="attr-media-controls">controls</code> attribute: <span>Interactive content</span>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <span>embedded content</span> is expected.</dd>
<dt>Content model:</dt>
Expand Down Expand Up @@ -24094,6 +24096,7 @@ function AddCloud(data, x, y) { ... }</pre>
<dl class="element">
<dt>Categories</dt>
<dd><span>Flow content</span>.</dd>
<dd><span>Interactive content</span>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <span>flow content</span> is expected.</dd>
<dt>Content model:</dt>
Expand Down Expand Up @@ -24198,13 +24201,6 @@ https://www.google.com/base/settings
detect when a row/selection has been deleted, activated, etc, by the
user (delete key, enter key, etc).</p> <!-- XXXPA -->

<p class="big-issue">This element is defined as interactive, which
means it can't contain other interactive elements, despite the fact
that we expect it to work with other interactive elements e.g.
checkboxes and input fields. It should be called something like a
Leaf Interactive Element or something, which counts for ancestors
looking in and not descendants looking out.</p>

<p>The <code>datagrid</code> element represents an interactive
representation of tree, list, or tabular data.</p>

Expand Down Expand Up @@ -26324,8 +26320,8 @@ XXX selection ranges -->
<dd><span>Interactive content</span>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <span>phrasing content</span> is expected.</dd>
<dt><span>Phrasing content</span>.</dt>
<dd>Empty.</dd>
<dt>Content model:</dt>
<dd><span>Phrasing content</span>, but there must be no <span>interactive content</span> descendant.</dd>
<dt>Element-specific attributes:</dt>
<dd><code title="attr-command-type">type</code></dd>
<dt>DOM interface:</dt>
Expand Down Expand Up @@ -26503,6 +26499,7 @@ menu li:not(:first-child)::before { content: ' | '; }</pre>
<dl class="element">
<dt>Categories</dt>
<dd><span>Flow content</span>.</dd>
<dd>If the element's <code title="attr-menu-type">type</code> attribute is in the <span title="tool bar state">tool bar</span> state: <span>Interactive content</span>.</dd>
<dd>If there is a <code>menu</code> element ancestor: <span>phrasing content</span>.</dd>
<dt>Contexts in which this element may be used:</dt>
<dd>Where <span>flow content</span> is expected.</dd>
Expand Down Expand Up @@ -50483,9 +50480,6 @@ define implied <html>, <head>, <body>, <p>, </p>, etc.
http://www.aujsproduction.com/samples/wishlist/revampedselector.asp


interactive elements can't be nested (as in <a><button><input></button></a>)


need a summary of all the content models and how they interact:
a | interactive strictly inline-level element | where inline-level content is expected | strictly inline-level content | interactive elements must not be nested
i | strictly inline-level element | where inline-level content is expected | strictly inline-level content |
Expand Down

0 comments on commit 4e65ed4

Please sign in to comment.