Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the "data-sigil" HTML attribute?

Tags:

html

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

It accepts a string value, like this:

<a class="a1class" href="/more.php" data-sigil="some-description">More</a>

Googling "data-sigil" HTML attribute yielded only a mailing list posting which doesn't seem to explain much in the context of an HTML attribute.

Any idea what that mysterious "data-sigil" HTML attribute could be?

like image 340
WinWin Avatar asked May 26 '11 02:05

WinWin


2 Answers

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

like image 154
Greg Hewgill Avatar answered Sep 21 '22 18:09

Greg Hewgill


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

like image 21
blerik Avatar answered Sep 19 '22 18:09

blerik