Skip to content

Commit 15dd922

Browse files
committed
Alternative: do nothing
1 parent 87e41a7 commit 15dd922

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

exploration/open-close-expressions.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,28 @@ Rendered as React this could become:
220220
_What other solutions are available?_
221221
_How do they compare against the requirements?_
222222
_What other properties they have?_
223+
224+
### Do Nothing
225+
226+
We could not provide any special support for spans and markup elements,
227+
and instead delegate the problem completely to tools and downstream processing layers.
228+
229+
```
230+
This is <html:strong>bold</html:strong> and this is <html:img alt="an image">.
231+
```
232+
233+
#### Pros:
234+
235+
* No work required from us right now.
236+
* It's HTML.
237+
* The least surprising syntax for developers and translators.
238+
* Some CAT tools already support HTML in translations.
239+
240+
#### Cons:
241+
242+
* Requires quoting in XML-based containers.
243+
* Relies on a best-effort convention; is not a standard.
244+
* Markup becomes a completely alient concept in MessageFormat:
245+
* It cannot be validated via the AST nor the reigstry.
246+
* It cannot be protected, unless put inside literal expressions.
247+
* It is not supported by `formatToParts`, which in turn makes double-parsing difficult.

0 commit comments

Comments
 (0)