updated addon
Source Link
Jason Varga
  • 2.7k
  • 13
  • 20

I've created an extension that'll let you do it.
https://github.com/jazonv/SafeCracker-Data-Attributeshttps://github.com/jazonv/SafeCracker-HTML5-Attributes

In addition to data-foo="bar", it'll also lets you use autocomplete="no" and novalidate="novalidate".

(Inspired by this gist by Objective HTML)

Disclaimer:
I'm by no means a PHP/Add-on dev. I just wanted to 'have a go' too. Hopefully there's nothing wrong with it.
If any better-versed devs want to give it a once over, that'd be appreciated.

I've created an extension that'll let you do it.
https://github.com/jazonv/SafeCracker-Data-Attributes

(Inspired by this gist by Objective HTML)

Disclaimer:
I'm by no means a PHP/Add-on dev. I just wanted to 'have a go' too. Hopefully there's nothing wrong with it.
If any better-versed devs want to give it a once over, that'd be appreciated.

I've created an extension that'll let you do it.
https://github.com/jazonv/SafeCracker-HTML5-Attributes

In addition to data-foo="bar", it'll also lets you use autocomplete="no" and novalidate="novalidate".

(Inspired by this gist by Objective HTML)

Disclaimer:
I'm by no means a PHP/Add-on dev. I just wanted to 'have a go' too. Hopefully there's nothing wrong with it.
If any better-versed devs want to give it a once over, that'd be appreciated.

added disclaimer
Source Link
Jason Varga
  • 2.7k
  • 13
  • 20

I've created an extension that'll let you do it.
https://github.com/jazonv/SafeCracker-Data-Attributes

(Inspired by this gist by Objective HTML)

Disclaimer:
I'm by no means a PHP/Add-on dev. I just wanted to 'have a go' too. Hopefully there's nothing wrong with it.
If any better-versed devs want to give it a once over, that'd be appreciated.

I've created an extension that'll let you do it.
https://github.com/jazonv/SafeCracker-Data-Attributes

(Inspired by this gist by Objective HTML)

I've created an extension that'll let you do it.
https://github.com/jazonv/SafeCracker-Data-Attributes

(Inspired by this gist by Objective HTML)

Disclaimer:
I'm by no means a PHP/Add-on dev. I just wanted to 'have a go' too. Hopefully there's nothing wrong with it.
If any better-versed devs want to give it a once over, that'd be appreciated.

Source Link
Jason Varga
  • 2.7k
  • 13
  • 20

I've created an extension that'll let you do it.
https://github.com/jazonv/SafeCracker-Data-Attributes

(Inspired by this gist by Objective HTML)