Add a namespace for data-* attribute?
See original GitHub issueHello,
As of V5 is coming, maybe it’s also time to add a namespace on data attribute to prevent conflict with others library?
Something like for events data-bs-toggle?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:15
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Namespacing data attributes | Blog - Decade City
HTML data attributes are a very useful way of conveying information to JavaScript that is running on the page and can be used...
Read more >Specifying Namespaces for Elements and Attributes
XML elements and attributes can belong to different namespaces, and the XML Schema specification provides for multiple ways of controlling and representing ...
Read more >Partitions and namespaces in the data model
A namespace is a logical categorization system that enables you to partition the data model by prepending the namespace to classes and ...
Read more >DataSet.Namespace Property (System.Data) - Microsoft Learn
The Namespace property is used when reading and writing an XML document into the DataSet using the ReadXml, WriteXml, ReadXmlSchema, or WriteXmlSchema methods....
Read more >How to add a namespace to specific attributes using linq?
What we'd like to do is specify in SQL Server Array="true" and then post-process the XML to add the @Json namespace prefix. Is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@Lausselloic I started a branch https://github.com/twbs/bootstrap/compare/master-xmr-prefix-data and only the data.js code needs to be adapted AFAICT. Feel free to PR against that branch or cherry pick the patch and PR against master 😃
A bit stupid but “'data-bs-” or “'data-” prefix could be given by a helper function.
example
bsDataName('toggle')It may would help on the minimization of js files and for backward compatibility reasons