Comments (5)
Ok this should behave as expected now in the new version dom-expressions 0.7.10. Please confirm that it works for you.
from dom-expressions.
I think that is a fair expectation and I'm going to re-evaluate. The non propagation is sort of intentional. I added this feature to get a number of the VDOM implementors off my back in the JS Frameworks Benchmark. I personally did not see the need for implicit event delegation with this renderer, but by adding I'm committing to support it. And the solution I chose was just copying what some of their libraries do. Unsurprisingly perhaps some of the fastest libraries don't support bubbling delegated events.
I respect InfernoJS balance of performance and capability. I will investigate their solution and likely follow suit on mechanics(although not API).
from dom-expressions.
Thanks for the detailed explanation. It's good to know that the current non propagation is sort of intentional and not a bug, but I'm happy to hear that you are going to re-evaluate the current behavior.
It's obviously not easy to find the right balance between performance and capability, but I think that getting a somewhat more expected (and hopefully useful) behavior might be worth it in this case. Looking forward to further progress on this library!
from dom-expressions.
Just to update you. Inferno does in fact do event bubbling of delegated events which is good enough for me. I will update this behavior. I do Shadow DOM retargeting which is a bit of a complication but I'm confident I should be able to come up with something here.
from dom-expressions.
Wow this was fast! I can confirm that it now works as expected for me.
from dom-expressions.
Related Issues (20)
- Better handling of prototype properties in compile time or runtime HOT 2
- Unexpected token '.' HOT 2
- classList produces class="undefined" if undefined key is passed HOT 5
- babel-plugin-jsx-dom-expressions: transformCondition is not defined error HOT 1
- Lack of a reliable quick start command to initialize this project
- [QUESTION] JSON to REAL Solid/React components HOT 3
- function voidFn() {} Question HOT 2
- Update Babel to add support for Typescript 4.9 HOT 2
- What is an easy way of running/debugging the babel-plugin-jsx package? HOT 1
- The `escape()` call in `renderToString()` also escapes a `<script>`s CDATA and a JSON-stringified "state" in there that contains HTML (or any other XML-like data) is encoded unintentionally HOT 1
- Update validate-html-nesting version to 1.2.0
- Migrate to TypeScript
- `ssrElement` doesn't check for void elements
- Serializer fails on recursive objects HOT 6
- `useAssets` is currently no-op in SSR if the markup doesn't have a `<head>`
- Missing `onFocus` HOT 3
- The delegate "addEventListener", it cannot add multiple listeners HOT 3
- feat: add support for attr: and prop: in spread() HOT 2
- bug: custom element readonly prop always converted to readOnly HOT 3
- Bundle gets es6 syntax HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dom-expressions.