Skip to content

Commit

Permalink
[giowt] (2) Don't escape '<' and '>' in attribute values, to handle h…
Browse files Browse the repository at this point in the history
  • Loading branch information
Hixie committed Oct 24, 2008
1 parent 050b71c commit 4eeb8a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
10 changes: 4 additions & 6 deletions index
Expand Up @@ -16,7 +16,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; 23 October 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 24 October 2008</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 @@ -50145,11 +50145,9 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
purposes of the algorithm above) consists of replacing any
occurrences of the "<code title="">&amp;</code>" character by the
string "<code title="">&amp;amp;</code>", any occurrences of the
"<code title="">&lt;</code>" character by the string "<code title="">&amp;lt;</code>", any occurrences of the "<code title="">&gt;</code>" character by the string "<code title="">&amp;gt;</code>", any occurrences of the U+00A0 NO-BREAK
SPACE character by the string "<code title="">&amp;nbsp;</code>",
and, if the algorithm was invoked in the <i>attribute mode</i>, any
occurrences of the "<code title="">"</code>" character by the
string "<code title="">&amp;quot;</code>".</p>
U+00A0 NO-BREAK SPACE character by the string "<code title="">&amp;nbsp;</code>", and, if the algorithm was invoked in
the <i>attribute mode</i>, any occurrences of the "<code title="">"</code>" character by the string "<code title="">&amp;quot;</code>", or if it was not, any occurrences of
the "<code title="">&lt;</code>" character by the string "<code title="">&amp;lt;</code>", any occurrences of the "<code title="">&gt;</code>" character by the string "<code title="">&amp;gt;</code>".</p>

<p class=note>Entity reference nodes are <a href=#entity-references>assumed to be expanded</a> by the user
agent, and are therefore not covered in the algorithm above.</p>
Expand Down
13 changes: 7 additions & 6 deletions source
Expand Up @@ -56985,14 +56985,15 @@ http://lxr.mozilla.org/seamonkey/search?string=nested
purposes of the algorithm above) consists of replacing any
occurrences of the "<code title="">&amp;</code>" character by the
string "<code title="">&amp;amp;</code>", any occurrences of the
"<code title="">&lt;</code>" character by the string "<code
U+00A0 NO-BREAK SPACE character by the string "<code
title="">&amp;nbsp;</code>", and, if the algorithm was invoked in
the <i>attribute mode</i>, any occurrences of the "<code
title="">&quot;</code>" character by the string "<code
title="">&amp;quot;</code>", or if it was not, any occurrences of
the "<code title="">&lt;</code>" character by the string "<code
title="">&amp;lt;</code>", any occurrences of the "<code
title="">&gt;</code>" character by the string "<code
title="">&amp;gt;</code>", any occurrences of the U+00A0 NO-BREAK
SPACE character by the string "<code title="">&amp;nbsp;</code>",
and, if the algorithm was invoked in the <i>attribute mode</i>, any
occurrences of the "<code title="">&quot;</code>" character by the
string "<code title="">&amp;quot;</code>".</p>
title="">&amp;gt;</code>".</p>

<p class="note">Entity reference nodes are <a
href="#entity-references">assumed to be expanded</a> by the user
Expand Down

0 comments on commit 4eeb8a1

Please sign in to comment.