Bug 24174 - < should be quoted in attribute values (edit)
authortravil
Mon, 24 Feb 2014 17:12:13 -0800
changeset 33 bfa43ce953aa
parent 32 f4430fb3b150
child 34 f5458f389274
Bug 24174 - < should be quoted in attribute values (edit)
* Added "<" and ">" replacement along with a note.
index.html
--- a/index.html	Mon Feb 03 16:43:07 2014 -0800
+++ b/index.html	Mon Feb 24 17:12:13 2014 -0800
@@ -620,7 +620,12 @@
                             <ol>
                                 <li>"<code>&quot;</code>" with "<code>&amp;quot;</code>"
                                 <li>"<code>&amp;</code>" with "<code>&amp;amp;</code>"
+                                <li>"<code>&lt;</code>" with "<code>&amp;lt;</code>"
+                                <li>"<code>&gt;</code>" with "<code>&amp;gt;</code>"
                             </ol>
+                            <p class=note>This matches behavior present in browsers, and goes above
+                            and beyond the grammar requirement in the XML specification's AttValue
+                            production [[XML10]] by also replacing "<code>&gt;</code>" characters.</p>
                             <li>"<code>"</code>" (U+0022 QUOTATION MARK).
                         </ol>
                     <li>If the first six characters of the value of <var>attr</var>'s