question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add a namespace for data-* attribute?

See original GitHub issue

Hello,

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:closed
  • Created 4 years ago
  • Reactions:15
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
XhmikosRcommented, Jun 10, 2020

@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 😃

0reactions
GeoSotcommented, Jun 15, 2020

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found