сб, 21 дек. 2019 г. в 15:45, Philipp Hörist <[email protected]>:

>
> I think you misunderstood the RFC, it's not a violation to send ">"
> unescaped.
>
> > The right angle bracket (>) *may *be represented using the string " &gt;
> ", and *MUST*, for compatibility
> <https://www.w3.org/TR/REC-xml/#dt-compat>, be escaped using either " &gt;
> " 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 &gt;
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>
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: [email protected]
_______________________________________________

Reply via email to