Comments (4)
Hi @ngdangtu-vn - thanks for reporting this. I agree it would be nice to disambiguate them. Alternatively, a different custom name, like:
customElements.define('custom-p-element',
...
// or
customElements.define('styled-para',
...
Bear in mind if we change this here, we'll have to rename it in the docs that reference the example:
- https://developer.mozilla.org/en-US/docs/Web/API/Web_components/Using_templates_and_slots
- https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry/get
- https://developer.mozilla.org/en-US/docs/Web/API/Element/slot
- https://developer.mozilla.org/en-US/docs/Web/API/Element/assignedSlot
from web-components-examples.
Lets update the examples here first and we can look at the MDN pages when we're ready. So this might be the best way:
- open a pull request here with the changes, when that looks good (not necessarily merged):
- open a pull request in mdn/content to update the pages listed above.
I can help with the reviews for these. Does that sound good? :)
from web-components-examples.
Sound good, give me one or two days.
from web-components-examples.
How should I update those MDN articles? Should I update the doc (https://github.com/mdn/content/tree/main/files/en-us/web/api) first or example (this) first?
from web-components-examples.
Related Issues (20)
- HTMLELEMENT CAN pass the paramers to the outter ? HOT 5
- Order of script and webcomponent HOT 6
- I want to encapsulate a component whose custom properties receive a function HOT 2
- License information and file are missing HOT 1
- How to initialize a web component from JavaScript? HOT 9
- CSP HOT 6
- expanding-list-web-component err HOT 1
- Word count counts itself HOT 2
- getAttribute always return null HOT 2
- popup-info-box-web-component violates HTML spec HOT 1
- Actively Maintained? HOT 1
- IE is dead, Time for modern code HOT 1
- Falsy comment in the word-count-web-component javascript file. HOT 1
- Add form-associated element example HOT 2
- En tΓͺte du CV
- Approving good
- EditableList's attribute-based approach makes for a confusing example HOT 1
- [spam] HOT 2
- this.shadowRoot is not defined HOT 3
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 web-components-examples.