Skip to content
Permalink
Browse files

[giowt] (2) Don't escape '<' and '>' in attribute values, to handle h…

  • Loading branch information
Hixie committed Oct 24, 2008
1 parent 050b71c commit 4eeb8a1706c9545d5aedb5d569d7f55778da9782
Showing with 11 additions and 12 deletions.
  1. +4 −6 index
  2. +7 −6 source
10 index
@@ -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>
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>
13 source
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

0 comments on commit 4eeb8a1

Please sign in to comment.