Comments (4)
You need to close your tag the same as you do with a script tag. <my-time country="uk"></my-time>
it's just a quirk of the web, that some tags must be close ¯_(ツ)_/¯
from hyper-element.
I guess it's using wire with id that makes it unreusable.
from hyper-element.
This closing of tags is part of the browser not hyperHTML.
This is an example
https://jsfiddle.net/bccqa5n1/1/
You can see that custom tags defined in the page must have a matching closing tag or it will just stay open. BUT you can have a self closing custom tag inside you render because hyperHTML v2.5 will now automatically add the matching closing tag
from hyper-element.
The issue is in fact about when you use hyperhtml.wire(obj, "ID")``, and then try to render a component that holds this wire id twice making it fail, which in my case like the whole app is based on. I'll close this as this is upstream without opening one in hyperhtml.
from hyper-element.
Related Issues (12)
- renders without dataset/attrs HOT 6
- cant use custom elements v1 HOT 3
- more powerful templating? HOT 1
- customelements v2 incompatible HOT 1
- Add support for event callbacks
- example is erroring
- bug in passing complexe type
- bug in passing complexe type - 2
- Child element NOT re-drawing
- style is not applied to custom child elemnts
- ReadMe is missing: how in use with NPM version HOT 1
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 hyper-element.