Skip to content

Commit

Permalink
Clarify ASCII-case-insensitive matching for <meta>'s name
Browse files Browse the repository at this point in the history
Closes #3332.
  • Loading branch information
TimvdLippe authored and domenic committed Mar 16, 2018
1 parent a4bb346 commit faa4c20
Showing 1 changed file with 22 additions and 16 deletions.
38 changes: 22 additions & 16 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -13811,8 +13811,9 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
data-x="attr-lang">lang</code> attribute to specify the language of each name.</p>

<p>There must not be more than one <code>meta</code> element with a given <span>language</span>
and with its <code data-x="attr-meta-name">name</code> attribute set to the value <code
data-x="meta-application-name">application-name</code> per document.</p>
and where the <code data-x="attr-meta-name">name</code> attribute value is an
<span>ASCII case-insensitive</span> match for
<code data-x="meta-application-name">application-name</code> per document.</p>

<div w-nodev>

Expand All @@ -13837,9 +13838,11 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {

<li>

<p>Let <var>winning language</var> be the first language in <var>languages</var> for which there is a <code>meta</code> element in the
<code>Document</code> that has its <code data-x="attr-meta-name">name</code> attribute set to
the value <code data-x="meta-application-name">application-name</code> and whose
<p>Let <var>winning language</var> be the first language in <var>languages</var> for which
there is a <code>meta</code> element in the <code>Document</code> where the
<code data-x="attr-meta-name">name</code> attribute value is an
<span>ASCII case-insensitive</span> match for
<code data-x="meta-application-name">application-name</code> and whose
<span>language</span> is the language in question.</p>

<p>If none of the languages have such a <code>meta</code> element, then return;
Expand All @@ -13850,9 +13853,10 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
<li>

<p>Return the value of the <code data-x="attr-meta-content">content</code> attribute of the
first <code>meta</code> element in the <code>Document</code> in <span>tree order</span> that
has its <code data-x="attr-meta-name">name</code> attribute set to the value <code
data-x="meta-application-name">application-name</code> and whose <span>language</span> is <var>winning language</var>.</p>
first <code>meta</code> element in the <code>Document</code> in <span>tree order</span> where the
<code data-x="attr-meta-name">name</code> attribute value is an
<span>ASCII case-insensitive</span> match for <code data-x="meta-application-name">application-name</code>
and whose <span>language</span> is <var>winning language</var>.</p>

</li>

Expand All @@ -13875,8 +13879,9 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {

<dd><p>The value must be a free-form string that describes the page. The value must be
appropriate for use in a directory of pages, e.g. in a search engine. There must not be more than
one <code>meta</code> element with its <code data-x="attr-meta-name">name</code> attribute set to
the value <code data-x="meta-description">description</code> per document.</p></dd>
one <code>meta</code> element where the <code data-x="attr-meta-name">name</code> attribute value
is an <span>ASCII case-insensitive</span> match for
<code data-x="meta-description">description</code> per document.</p></dd>

<dt><dfn><code data-x="meta-generator">generator</code></dfn></dt>

Expand Down Expand Up @@ -13936,9 +13941,9 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
<li>

<p>For each <code>meta</code> element with a <code data-x="attr-meta-name">name</code>
attribute and a <code data-x="attr-meta-content">content</code> attribute and whose <code
data-x="attr-meta-name">name</code> attribute's value is <code
data-x="meta-keywords">keywords</code>:</p>
attribute and a <code data-x="attr-meta-content">content</code> attribute and where the <code
data-x="attr-meta-name">name</code> attribute value is an <span>ASCII case-insensitive</span>
match for <code data-x="meta-keywords">keywords</code>:</p>

<ol>

Expand Down Expand Up @@ -13994,7 +13999,7 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
<ul class="brief">
<li>The element is <span>in a document tree</span></li>
<li>The element has a <code data-x="attr-meta-name">name</code> attribute, whose value is
<code data-x="meta-referrer">referrer</code></li>
an <span>ASCII case-insensitive</span> match for <code data-x="meta-referrer">referrer</code></li>
<li>The element has a <code data-x="attr-meta-content">content</code> attribute, whose value
is not the empty string</li>
<li>The element is a child of <span>the <code>head</code> element</span> of the document</li>
Expand Down Expand Up @@ -14058,7 +14063,8 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
specified value, or use it as a color highlight in a tab bar or task switcher.</p>

<p>There must not be more than one <code>meta</code> element with its <code
data-x="attr-meta-name">name</code> attribute set to the value <code
data-x="attr-meta-name">name</code> attribute value set to an
<span>ASCII case-insensitive</span> match for <code
data-x="meta-theme-color">theme-color</code> per document.</p>

<div class="example">
Expand All @@ -14084,7 +14090,7 @@ interface <dfn>HTMLMetaElement</dfn> : <span>HTMLElement</span> {
<ul class="brief">
<li>The element is <span>in a document tree</span></li>
<li>The element has a <code data-x="attr-meta-name">name</code> attribute, whose value is
<code data-x="meta-theme-color">theme-color</code></li>
an <span>ASCII case-insensitive</span> match for <code data-x="meta-theme-color">theme-color</code></li>
<li>The element has a <code data-x="attr-meta-content">content</code> attribute</li>
</ul>
</li>
Expand Down

0 comments on commit faa4c20

Please sign in to comment.