[Standards] Proposed XMPP Extension: Character counting in message bodies

Andrew Nenakhov andrew.nenakhov at redsolution.com
Sat Dec 21 10:57:19 UTC 2019


сб, 21 дек. 2019 г. в 15:45, Philipp Hörist <philipp at hoerist.com>:

>
> I think you misunderstood the RFC, it's not a violation to send ">"
> unescaped.
>
> > The right angle bracket (>) *may *be represented using the string " >
> ", and *MUST*, for compatibility
> <https://www.w3.org/TR/REC-xml/#dt-compat>, be escaped using either " >
> " or a character reference *when *it appears in the string " ]]> " in
> content, when that string is not marking the end of a CDATA section
> <https://www.w3.org/TR/REC-xml/#dt-cdsection>.
>
>
I have a different reading of this.

MUST be escaped using
EITHER >
OR  character reference (WHEN it appears in the string ... ...)

so OR branch is clearly used only for case listed in WHEN

-- 
Andrew Nenakhov
CEO, redsolution, OÜ
https://redsolution.com <http://www.redsolution.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/standards/attachments/20191221/ccae1220/attachment-0001.html>


More information about the Standards mailing list