Bug 18437 - XML serialization of text node does no escaping
XML serialization of text node does no escaping
Status: RESOLVED FIXED
Product: WebAppsWG
Classification: Unclassified
Component: DOM Parsing and Serialization
unspecified
All All
: P2 normal
: ---
Assigned To: Ms2ger
public-webapps-bugzilla
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-07-30 12:56 UTC by Aryeh Gregor
Modified: 2012-08-02 10:30 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.