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 18437 - XML serialization of text node does no escaping
Summary: XML serialization of text node does no escaping
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: DOM Parsing and Serialization (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ms2ger
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-30 12:56 UTC by Aryeh Gregor
Modified: 2012-08-02 10:30 UTC (History)
3 users (show)

See Also:


Attachments

Description Aryeh Gregor 2012-07-30 12:56:44 UTC
It should probably say to replace <>& with their respective entities.  This might well not be what browsers do, though.  I received a complaint that they overescape, e.g., nbsp.
Comment 1 Aryeh Gregor 2012-07-30 12:58:34 UTC
Hmm, maybe browsers escape any non-ASCII characters because they don't know what the encoding will be?  That would make sense, although it's horribly annoying if you use many non-ASCII chars.