Mention that clients should not be producing invalid HTML

Fixes https://github.com/matrix-org/matrix-doc/issues/1595
pull/1605/head
Travis Ralston 6 years ago
parent 8e88d82a4b
commit 2234e0b097

@ -106,6 +106,11 @@ of tags they can render, falling back to other representations of the tags where
For example, a client may not be able to render tables correctly and instead could fall
back to rendering tab-delimited text.
In addition to not rendering unsafe HTML, clients should not emit unsafe HTML in events.
Likewise, clients should not generate HTML that is not needed, such as extra paragraph tags
surrounding text due to Rich Text Editors. HTML included in events should otherwise be valid,
such as having appropriate closing tags, valid attributes, and generally valid structure.
.. Note::
A future iteration of the specification will support more powerful and extensible
message formatting options, such as the proposal `MSC1225 <https://github.com/matrix-org/matrix-doc/issues/1225>`_.

Loading…
Cancel
Save