Skip to content

Commit

Permalink
[e] (0) Mention that unquoted attributes can't contain spaces.
Browse files Browse the repository at this point in the history
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=7995

git-svn-id: http://svn.whatwg.org/webapps@4292 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Oct 23, 2009
1 parent 9fd1dd7 commit 9c06d91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
7 changes: 4 additions & 3 deletions complete.html
Expand Up @@ -1696,9 +1696,10 @@ <h3 id=a-quick-introduction-to-html><span class=secno>1.8 </span>A quick introdu
<pre>&lt;a href="demo.html"&gt;simple&lt;/a&gt;</pre>

<p><a href=#syntax-attributes title=syntax-attributes>Attributes</a> are placed
inside the start tag, and consist of a <a href=#syntax-attribute-name title=syntax-attribute-name>name</a> and a <a href=#syntax-attribute-value title=syntax-attribute-value>value</a>, separated by an "<code title="">=</code>" character. The attribute value can be left <a href=#unquoted>unquoted</a> if it doesn't contain any of <code title="">"</code> <code title="">'</code> <code title="">`</code>
<code title="">=</code> <code title="">&lt;</code> or <code title="">&gt;</code>. Otherwise, it has to be quoted using either
single or double quotes. The value, along with the "<code title="">=</code>" character, can be omitted altogether if the value
inside the start tag, and consist of a <a href=#syntax-attribute-name title=syntax-attribute-name>name</a> and a <a href=#syntax-attribute-value title=syntax-attribute-value>value</a>, separated by an "<code title="">=</code>" character. The attribute value can be left <a href=#unquoted>unquoted</a> if it doesn't contain spaces or any of
<code title="">"</code> <code title="">'</code> <code title="">`</code> <code title="">=</code> <code title="">&lt;</code>
or <code title="">&gt;</code>. Otherwise, it has to be quoted using
either single or double quotes. The value, along with the "<code title="">=</code>" character, can be omitted altogether if the value
is the empty string.</p>

<pre>&lt;!-- empty attributes --&gt;
Expand Down
7 changes: 4 additions & 3 deletions index
Expand Up @@ -1506,9 +1506,10 @@
<pre>&lt;a href="demo.html"&gt;simple&lt;/a&gt;</pre>

<p><a href=#syntax-attributes title=syntax-attributes>Attributes</a> are placed
inside the start tag, and consist of a <a href=#syntax-attribute-name title=syntax-attribute-name>name</a> and a <a href=#syntax-attribute-value title=syntax-attribute-value>value</a>, separated by an "<code title="">=</code>" character. The attribute value can be left <a href=#unquoted>unquoted</a> if it doesn't contain any of <code title="">"</code> <code title="">'</code> <code title="">`</code>
<code title="">=</code> <code title="">&lt;</code> or <code title="">&gt;</code>. Otherwise, it has to be quoted using either
single or double quotes. The value, along with the "<code title="">=</code>" character, can be omitted altogether if the value
inside the start tag, and consist of a <a href=#syntax-attribute-name title=syntax-attribute-name>name</a> and a <a href=#syntax-attribute-value title=syntax-attribute-value>value</a>, separated by an "<code title="">=</code>" character. The attribute value can be left <a href=#unquoted>unquoted</a> if it doesn't contain spaces or any of
<code title="">"</code> <code title="">'</code> <code title="">`</code> <code title="">=</code> <code title="">&lt;</code>
or <code title="">&gt;</code>. Otherwise, it has to be quoted using
either single or double quotes. The value, along with the "<code title="">=</code>" character, can be omitted altogether if the value
is the empty string.</p>

<pre>&lt;!-- empty attributes --&gt;
Expand Down
10 changes: 5 additions & 5 deletions source
Expand Up @@ -491,11 +491,11 @@
title="syntax-attribute-name">name</span> and a <span
title="syntax-attribute-value">value</span>, separated by an "<code
title="">=</code>" character. The attribute value can be left <a
href="#unquoted">unquoted</a> if it doesn't contain any of <code
title="">"</code> <code title="">'</code> <code title="">`</code>
<code title="">=</code> <code title="">&lt;</code> or <code
title="">&gt;</code>. Otherwise, it has to be quoted using either
single or double quotes. The value, along with the "<code
href="#unquoted">unquoted</a> if it doesn't contain spaces or any of
<code title="">"</code> <code title="">'</code> <code
title="">`</code> <code title="">=</code> <code title="">&lt;</code>
or <code title="">&gt;</code>. Otherwise, it has to be quoted using
either single or double quotes. The value, along with the "<code
title="">=</code>" character, can be omitted altogether if the value
is the empty string.</p>

Expand Down

0 comments on commit 9c06d91

Please sign in to comment.