This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 24795 - < should be quoted in attribute values
Summary: < should be quoted in attribute values
Status: RESOLVED DUPLICATE of bug 24174
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM Parsing and Serialization (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Travis Leithead [MSFT]
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on: 24174
Blocks:
  Show dependency treegraph
 
Reported: 2014-02-25 08:02 UTC by Ms2ger
Modified: 2014-10-13 23:44 UTC (History)
6 users (show)

See Also:


Attachments

Description Ms2ger 2014-02-25 08:02:54 UTC
+++ This bug was initially created as a clone of Bug #24174 +++

The XML specification forbids < in attribute values.

Source 1: see the grammar for AttValue below.
http://www.w3.org/TR/REC-xml/#sec-common-syn

Source 2: http://www.w3.org/TR/REC-xml/#CleanAttrVals


The XML serialization algorithm in the DOM Parsing and Serialization specification can produce < in XML attribute values.

https://dvcs.w3.org/hg/innerhtml/raw-file/tip/index.html#dfn-concept-serialize-xml-attributes

Specifically, step 2 substep 4 only quotes " and &. It should also quote < as &lt;.
Comment 1 Travis Leithead [MSFT] 2014-10-13 23:44:29 UTC
:-)

*** This bug has been marked as a duplicate of bug 24174 ***