|
I see how useful a universal UI language working across platforms is, but when I look at some examples from this protocol, I have the feeling it will eventually converge to what we already have, html. Instead of making all platforms support this new universal markup language, why not make them support html, which some already do, and which llms are already trained on. Some examples from the documentation:
{
"id": "settings-tabs",
"component": {
"Tabs": {
"tabItems": [
{"title": {"literalString": "General"}, "child": "general-settings"},
{"title": {"literalString": "Privacy"}, "child": "privacy-settings"},
{"title": {"literalString": "Advanced"}, "child": "advanced-settings"}
]
}
}
} {
"id": "email-input",
"component": {
"TextField": {
"label": {"literalString": "Email Address"},
"text": {"path": "/user/email"},
"textFieldType": "shortText"
}
}
} |
Most HTML is actually HTML+CSS+JS - IMO, accepting this is a code injection attack waiting to happen. By abstracting to JSON, a client can safely render UI without this concern.