Erik Demaine

Results 343 comments of Erik Demaine

This issue came up again recently in #help, where it was surprising that `` didn't support directives (or rather, they get assigned as attributes). I wonder if it makes sense...

I had the following behavior in mind: 1. If `props.as` is a native element, it would work like a regular directive. 2. If `props.as` is a component, `use:myDirective` (`=true`?) would...

First, whatever we decide here in general, even if it's "do nothing", I think we should modify `` to support directives when it `component` is a string so an `Element`...

> I think we should wrap the importNode call in `untrack`. This sounds analogous to `createComponent` wrapping component functions in `untrack`. I don't know WC well enough to say for...

From https://github.com/solidjs/solid/issues/883#issuecomment-1068666676: In case it's helpful, [here is React's code for checking nesting conditions](https://github.com/facebook/react/blob/cae635054e17a6f107a39d328649137b83f25972/packages/react-dom/src/client/validateDOMNesting.js). I've definitely found these error messages helpful. Alternatively, I wonder if we could diff the serialized...

> https://github.com/MananTank/validate-html-nesting Nice! Bundlephobia says 2.8kB minified, 1.2kB gzipped. Perhaps we could include it in dev builds, to make more helpful error messages?

Approach to this: write a Markdown plugin (after [this](https://github.com/edemaine/coauthor/issues/533#issuecomment-797530224)) that emits a secondary data structure with the source rendered mapping, character by character. Include this plugin only when needed (when...

Yuck, nice find. I don't see a clean way to fix this. The hacky way would be to process ticks and dollar signs in one pass, keeping track of being...

~~Another bad example: `` `@edemaine` `` expands to `@Erik Demaine`~~ Edit: This particular case was fixed.

This should be quite similar to the existing "author" search, which is already searching the body field for `@username`. (Ideally both would cluster by problem, and respect the hierarchy order...