Proposal: native XML object support.

ViliusCreator viliuskubilius416 at gmail.com
Mon May 20 12:01:10 UTC 2019


> With strings and even E4X, you don't get the same experience that react supports. Things like property completion in XML mode, XML internal logic, etc.

Pretty sure you can do this:

```js
// ... xml function definition
/**
 * @type {Element}
 * @prop {string} href
 */
const xmlObj = xml`<a href=”...”>something</a>`
```

This should make editor auto-complete xml object for you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20190520/07600ef2/attachment.html>


More information about the es-discuss mailing list