Skip to content

Using a standard custom data attribute for notes ? #2

Description

@tanusoft

I really like the concept of this little wireframing framework, and we (the web designers in our team) have been using it in our projects for a few weeks.

But something has always been bugging me : the fact that it requires adding an invalid "note" attribute to the HTML elements. It's something that most HTML editors will flag as warnings, if not errors (indeed, the W3C validator DOES flag them as errors).

There is an easy fix for that, using a "data-" prefix on this custom attribute ::

http://www.w3.org/html/wg/drafts/html/master/dom.html#custom-data-attribute
http://ejohn.org/blog/html-5-data-attributes/

Just using "data-note" instead of "note" would fix this issue. You could even go as far as using a vendor identifier prefix, like "data-metaframe-note", although maybe this would increase the clutter in the HTML files beyond necessary (but could come handy in case people need to use metaframe along other frameworks that use a "data-note" annotation). Maybe allowing both "data-note" and "data-metaframe-note" would give people maximum flexibility.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions