Okku

Results 21 comments of Okku

There are some subtle differences. For example, HTML doesn't support self-closing elements other than void HTML elements, while XML does. Also if the XML looks like HTML, the parser might...

There's no explicit support for it yet in the library, but perhaps you can work something out manually using [declarative shadow dom](https://web.dev/declarative-shadow-dom/).

Sounds like what you're asking for is for the return type to be `NodeListOf`, like it is in `dom.lib.d.ts`. Current behavior seems like a bug.

This should be fairly easy to fix. I'll try to make the time for fixing this later today 👍

I guess I could give an update on this. This wasn't as easy as I initially thought. I've been working on it. The parser doesn't disambiguate between different element types,...

[Example of `ReactiveArray::mutFilter()` in use](https://github.com/0kku/destiny/blob/48d424618bcd3abeefff3c0f0a73435f5b093771/src/components/to-do/to-do.ts#L143)

> Is there a reason you'd want to have a sort and reverse method that can be mutable? Why not just `ReactiveArray` inherit/implement `Array.prototype.sort` and `Array.prototype.reverse`? > Though maybe it...

Thanks for creating this. For now, I'll answer here: `register()` is a wrapper for `customElements.define` yes. It tries to register a name using the class' name, converting it from PascalCase...

As a side-note — you don't necessarily have to use `register()` at all. This works: ```ts class Foo extends DestinyElement {} const bar = xml` `; ```

Love the latest commit message lol.