Skip to content

Instantly share code, notes, and snippets.

View burawi's full-sized avatar

Burawi Ben Ammar burawi

View GitHub Profile
@burawi
burawi / Custom-attributes.md
Last active January 15, 2021 13:37
This is a proposal of a browser API that handles custom HTML attributes somehow like custom elements

Custom Attributes

This README describes a new feature proposal to ECMASCRIPT.

The feature consists of a browser API that handles custom html attributes.

Introduction

Custom html attributes, are aimed to fill some cases that are not handled by custom elements. It consists of adding reusable attributes that can be set to any html element.

Custom attributes should have a special notation (eg: starting by #), to distinguish them from normal attributes.