Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ac] (0) Add cite='' attribute to <section> and <article>.
git-svn-id: http://svn.whatwg.org/webapps@3069 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 6, 2009
1 parent 2b4bc8e commit 6833618
Show file tree
Hide file tree
Showing 2 changed files with 119 additions and 40 deletions.
79 changes: 59 additions & 20 deletions index
Expand Up @@ -39,7 +39,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 4 May 2009</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 6 May 2009</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -4721,8 +4721,10 @@

</dd>

<dt>If the element is a <code><a href=#the-blockquote-element>blockquote</a></code>, <code><a href=#the-q-element>q</a></code>,
<code><a href=#the-ins-element>ins</a></code>, or <code><a href=#the-del-element>del</a></code> element with a <code title="">cite</code> attribute</dt>
<dt>If the element is a <code><a href=#the-q-element>q</a></code>, <code><a href=#the-blockquote-element>blockquote</a></code>,
<code><a href=#the-section-element>section</a></code>, <code><a href=#the-article-element>article</a></code>, <code><a href=#the-ins-element>ins</a></code>, or
<code><a href=#the-del-element>del</a></code> element with a <code title="">cite</code>
attribute</dt>

<dd>

Expand Down Expand Up @@ -12142,8 +12144,13 @@ not-slash = %x0000-002E / %x0030-%10FFFF
<dd><a href=#flow-content-0>Flow content</a>.</dd>
<dt>Content attributes:</dt>
<dd><a href=#global-attributes>Global attributes</a></dd>
<dd><code title=attr-section-cite><a href=#attr-section-cite>cite</a></code></dd>
<dt>DOM interface:</dt>
<dd>Uses <code><a href=#htmlelement>HTMLElement</a></code>.</dd>
<dd>
<pre class=idl>interface <dfn id=htmlsectionelement>HTMLSectionElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
attribute DOMString <a href=#dom-section-cite title=dom-section-cite>cite</a>;
};</pre>
</dd>
</dl><p>The <code><a href=#the-section-element>section</a></code> element <a href=#represents>represents</a> a
generic document or application section. A section, in this context,
is a thematic grouping of content, typically with a heading, possibly
Expand All @@ -12154,6 +12161,23 @@ not-slash = %x0000-002E / %x0030-%10FFFF
sections of a thesis. A Web site's home page could be split into
sections for an introduction, news items, contact information.</p>

<p>The <dfn id=attr-section-cite title=attr-section-cite><code>cite</code></dfn>
attribute may be used if the content of the section was taken from
another page (e.g. syndicating content from multiple sources on one
page). The attribute, if present, must contain a <a href=#valid-url>valid
URL</a> referencing the original source. <span class=impl>To
obtain the corresponding citation link, the value of the attribute
must be <a href=#resolve-a-url title="resolve a url">resolved</a> relative to the
element. User agents should allow users to follow such citation
links.</span></p>

<div class=impl>

<p>The <dfn id=dom-section-cite title=dom-section-cite><code>cite</code></dfn> DOM
attribute must <a href=#reflect>reflect</a> the element's <code title=attr-section-cite><a href=#attr-section-cite>cite</a></code> content attribute.</p>

</div>

<div class=example>

<p>In the following example, we see an article (part of a larger
Expand Down Expand Up @@ -12254,11 +12278,14 @@ not-slash = %x0000-002E / %x0030-%10FFFF
<dd><a href=#flow-content-0>Flow content</a>.</dd>
<dt>Content attributes:</dt>
<dd><a href=#global-attributes>Global attributes</a></dd>
<!--
XXX attributes to give the date authored, date published
-->
<dd><code title=attr-article-cite><a href=#attr-article-cite>cite</a></code></dd>
<!-- v2 attributes to give the date authored, date published, name of author, etc -->
<dt>DOM interface:</dt>
<dd>Uses <code><a href=#htmlelement>HTMLElement</a></code>.</dd>
<dd>
<pre class=idl>interface <dfn id=htmlarticleelement>HTMLArticleElement</dfn> : <a href=#htmlelement>HTMLElement</a> {
attribute DOMString <a href=#dom-article-cite title=dom-article-cite>cite</a>;
};</pre>
</dd>
</dl><p>The <code><a href=#the-article-element>article</a></code> element <a href=#represents>represents</a> a
section of a page that consists of a composition that forms an
independent part of a document, page, or site. This could be a forum
Expand All @@ -12270,9 +12297,7 @@ XXX attributes to give the date authored, date published
that its contents could stand alone, for example in syndication.
However, the element is still associated with its ancestors; for
instance, contact information that <a href=#applyToSection>applies</a> to a parent <code><a href=#the-body-element>body</a></code>
element still covers the <code><a href=#the-article-element>article</a></code> as well.</p> <!-- XXX
or should we apply the rules in the last paragraph to all articles?
-->
element still covers the <code><a href=#the-article-element>article</a></code> as well.</p>

<p>When <code><a href=#the-article-element>article</a></code> elements are nested, the inner
<code><a href=#the-article-element>article</a></code> elements represent articles that are in
Expand All @@ -12286,6 +12311,23 @@ XXX attributes to give the date authored, date published
element (q.v. the <code><a href=#the-address-element>address</a></code> element) does not apply to
nested <code><a href=#the-article-element>article</a></code> elements.</p>

<p>The <dfn id=attr-article-cite title=attr-article-cite><code>cite</code></dfn>
attribute may be used if the content of the article was taken from
another page (e.g. syndicating content from multiple sources on one
page). The attribute, if present, must contain a <a href=#valid-url>valid
URL</a> referencing the original source. <span class=impl>To
obtain the corresponding citation link, the value of the attribute
must be <a href=#resolve-a-url title="resolve a url">resolved</a> relative to the
element. User agents should allow users to follow such citation
links.</span></p>

<div class=impl>

<p>The <dfn id=dom-article-cite title=dom-article-cite><code>cite</code></dfn> DOM
attribute must <a href=#reflect>reflect</a> the element's <code title=attr-article-cite><a href=#attr-article-cite>cite</a></code> content attribute.</p>

</div>



<h4 id=the-aside-element><span class=secno>4.4.5 </span>The <dfn><code>aside</code></dfn> element</h4>
Expand Down Expand Up @@ -16621,16 +16663,13 @@ brighter. A &lt;b&gt;rat&lt;/b&gt; scurries past the corner wall.&lt;/p&gt;</pre
pointing to the specific part of that document that discusses the
change.</p>

<div class=impl>

<p>If the <code title=attr-mod-cite><a href=#attr-mod-cite>cite</a></code> attribute is
present, it must be a <a href=#valid-url>valid URL</a> that explains the
change. To obtain the corresponding citation link, the value of the
attribute must be <a href=#resolve-a-url title="resolve a url">resolved</a>
relative to the element. User agents should allow users to follow
such citation links.</p>
change. <span class=impl>To obtain the corresponding citation
link, the value of the attribute must be <a href=#resolve-a-url title="resolve a
url">resolved</a> relative to the element. User agents should
allow users to follow such citation links.</span></p>

</div>

<p>The <dfn id=attr-mod-datetime title=attr-mod-datetime><code>datetime</code></dfn>
attribute may be used to specify the time and date of the change.</p>
Expand Down Expand Up @@ -64403,8 +64442,8 @@ time:empty { binding: <i title="">time</i>; }</pre>
<p>User agents are expected to allow users to <a href=#navigate>navigate</a>
<a href=#browsing-context title="browsing context">browsing contexts</a> to the
resources <a href=#resolve-a-url title="resolve a url">indicated</a> by the <code title="">cite</code> attributes on <code><a href=#the-q-element>q</a></code>,
<code><a href=#the-blockquote-element>blockquote</a></code>, <code><a href=#the-ins-element>ins</a></code>, and <code><a href=#the-del-element>del</a></code>
elements.</p>
<code><a href=#the-blockquote-element>blockquote</a></code>, <code><a href=#the-section-element>section</a></code>, <code><a href=#the-article-element>article</a></code>,
<code><a href=#the-ins-element>ins</a></code>, and <code><a href=#the-del-element>del</a></code> elements.</p>

<p>User agents are expected to surface <a href=#hyperlink title=hyperlink>hyperlinks</a> created by <code><a href=#the-link-element>link</a></code>
elements in their user interface.</p>
Expand Down
80 changes: 60 additions & 20 deletions source
Expand Up @@ -4378,9 +4378,10 @@

</dd>

<dt>If the element is a <code>blockquote</code>, <code>q</code>,
<code>ins</code>, or <code>del</code> element with a <code
title="">cite</code> attribute</dt>
<dt>If the element is a <code>q</code>, <code>blockquote</code>,
<code>section</code>, <code>article</code>, <code>ins</code>, or
<code>del</code> element with a <code title="">cite</code>
attribute</dt>

<dd>

Expand Down Expand Up @@ -12971,8 +12972,13 @@ not-slash = %x0000-002E / %x0030-%10FFFF
<dd><span>Flow content</span>.</dd>
<dt>Content attributes:</dt>
<dd><span>Global attributes</span></dd>
<dd><code title="attr-section-cite">cite</code></dd>
<dt>DOM interface:</dt>
<dd>Uses <code>HTMLElement</code>.</dd>
<dd>
<pre class="idl">interface <dfn>HTMLSectionElement</dfn> : <span>HTMLElement</span> {
attribute DOMString <span title="dom-section-cite">cite</span>;
};</pre>
</dd>
</dl>

<p>The <code>section</code> element <span>represents</span> a
Expand All @@ -12985,6 +12991,24 @@ not-slash = %x0000-002E / %x0030-%10FFFF
sections of a thesis. A Web site's home page could be split into
sections for an introduction, news items, contact information.</p>

<p>The <dfn title="attr-section-cite"><code>cite</code></dfn>
attribute may be used if the content of the section was taken from
another page (e.g. syndicating content from multiple sources on one
page). The attribute, if present, must contain a <span>valid
URL</span> referencing the original source. <span class="impl">To
obtain the corresponding citation link, the value of the attribute
must be <span title="resolve a url">resolved</span> relative to the
element. User agents should allow users to follow such citation
links.</span></p>

<div class="impl">

<p>The <dfn title="dom-section-cite"><code>cite</code></dfn> DOM
attribute must <span>reflect</span> the element's <code
title="attr-section-cite">cite</code> content attribute.</p>

</div>

<div class="example">

<p>In the following example, we see an article (part of a larger
Expand Down Expand Up @@ -13089,11 +13113,14 @@ not-slash = %x0000-002E / %x0030-%10FFFF
<dd><span>Flow content</span>.</dd>
<dt>Content attributes:</dt>
<dd><span>Global attributes</span></dd>
<!--
XXX attributes to give the date authored, date published
-->
<dd><code title="attr-article-cite">cite</code></dd>
<!-- v2 attributes to give the date authored, date published, name of author, etc -->
<dt>DOM interface:</dt>
<dd>Uses <code>HTMLElement</code>.</dd>
<dd>
<pre class="idl">interface <dfn>HTMLArticleElement</dfn> : <span>HTMLElement</span> {
attribute DOMString <span title="dom-article-cite">cite</span>;
};</pre>
</dd>
</dl>

<p>The <code>article</code> element <span>represents</span> a
Expand All @@ -13108,9 +13135,7 @@ XXX attributes to give the date authored, date published
However, the element is still associated with its ancestors; for
instance, contact information that <a
href="#applyToSection">applies</a> to a parent <code>body</code>
element still covers the <code>article</code> as well.</p> <!-- XXX
or should we apply the rules in the last paragraph to all articles?
-->
element still covers the <code>article</code> as well.</p>

<p>When <code>article</code> elements are nested, the inner
<code>article</code> elements represent articles that are in
Expand All @@ -13124,6 +13149,24 @@ XXX attributes to give the date authored, date published
element (q.v. the <code>address</code> element) does not apply to
nested <code>article</code> elements.</p>

<p>The <dfn title="attr-article-cite"><code>cite</code></dfn>
attribute may be used if the content of the article was taken from
another page (e.g. syndicating content from multiple sources on one
page). The attribute, if present, must contain a <span>valid
URL</span> referencing the original source. <span class="impl">To
obtain the corresponding citation link, the value of the attribute
must be <span title="resolve a url">resolved</span> relative to the
element. User agents should allow users to follow such citation
links.</span></p>

<div class="impl">

<p>The <dfn title="dom-article-cite"><code>cite</code></dfn> DOM
attribute must <span>reflect</span> the element's <code
title="attr-article-cite">cite</code> content attribute.</p>

</div>



<h4>The <dfn><code>aside</code></dfn> element</h4>
Expand Down Expand Up @@ -17837,16 +17880,13 @@ brighter. A &lt;b>rat&lt;/b> scurries past the corner wall.&lt;/p></pre>
pointing to the specific part of that document that discusses the
change.</p>

<div class="impl">

<p>If the <code title="attr-mod-cite">cite</code> attribute is
present, it must be a <span>valid URL</span> that explains the
change. To obtain the corresponding citation link, the value of the
attribute must be <span title="resolve a url">resolved</span>
relative to the element. User agents should allow users to follow
such citation links.</p>
change. <span class="impl">To obtain the corresponding citation
link, the value of the attribute must be <span title="resolve a
url">resolved</span> relative to the element. User agents should
allow users to follow such citation links.</span></p>

</div>

<p>The <dfn title="attr-mod-datetime"><code>datetime</code></dfn>
attribute may be used to specify the time and date of the change.</p>
Expand Down Expand Up @@ -75599,8 +75639,8 @@ time:empty { binding: <i title="">time</i>; }</pre>
<span title="browsing context">browsing contexts</span> to the
resources <span title="resolve a url">indicated</span> by the <code
title="">cite</code> attributes on <code>q</code>,
<code>blockquote</code>, <code>ins</code>, and <code>del</code>
elements.</p>
<code>blockquote</code>, <code>section</code>, <code>article</code>,
<code>ins</code>, and <code>del</code> elements.</p>

<p>User agents are expected to surface <span
title="hyperlink">hyperlinks</span> created by <code>link</code>
Expand Down

0 comments on commit 6833618

Please sign in to comment.