Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

enhancement to the _satellite.$data function

Avatar

Avatar
Boost 1
Level 1
davidharris
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
davidharris
Level 1

Like

1 like

Total Posts

1 post

Correct reply

0 solutions
Top badges earned
Boost 1
View profile
davidharris
Level 1

02-12-2014

Currently it is possible to set and get data values on elements using the _satellite.$data function.

 

As per the HTML5 spec, you can provide data values in the markup by prefixing attributes with "data"

 

eg: link

 

The _satellite.$data does not read these values.

 

Would be great if it does, as we are using values provided this way for various aspects of DTM implementaions

 

The current work round is to use this.getAttribute("data-name")