What is the “data-sigil” HTML attribute?

后端 未结 2 1206
情深已故
情深已故 2020-12-11 06:04

I just came across a website that has \"data-sigil\" as an attribute for HTML elements like a, div, label, abbr.

相关标签:
2条回答
  • 2020-12-11 06:20

    It's actually a sigil from Javelin (Facebook JavaScript framework). Javelin separates style markers (ids and classes) from functional markers. They use sigils for the latter. See:

    http://phabricator.com/docs/javelin/article/Concepts:_Sigils_and_Metadata.html

    0 讨论(0)
  • 2020-12-11 06:36

    Any attribute starting with data- is an HTML 5 data- attribute.

    0 讨论(0)
提交回复
热议问题