• Skip to primary navigation
  • Skip to content
  • Skip to footer
David Merrick
  • Projects
  • About
    David Merrick

    David Merrick

    Software Engineer, Portland, OR

    • LinkedIn
    • GitHub
    • Stack Overflow

    On the HTML 5 “data” attribute

    This attribute can not only contain text values, but any arbitrary JavaScript value, including arrays and objects. This is extremely useful for scoping and eliminating the need for global variables in the your application’s JavaScript.

    Reference: https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attributes

    Updated: April 07, 2015

    Twitter Facebook LinkedIn
    Previous Next

    Comments

    You May Also Enjoy

    How to print a Notion page

    Notion printing is awful. Here’s a workaround.

    Why I’ll still use 1Password over Apple’s new password manager

    Apple Passwords is great, but lacking several key features that 1Password has

    2023 Europe Cycling Trip

    Cycling trip with my dad and sister along the Danube from Germany to Austria

    Wallowas Backpacking, July 2023

    A weekend backpacking trip to Ice Lake, in the Wallowas

    • Feed
    © 2026 David Merrick. Powered by Jekyll & Minimal Mistakes.