wylasr
wylasr

Reputation: 117

Eclipse - Undefined attribute name Warning

I'm trying to use avalonjs(on github) in eclipse . I add dependency in my login.html at <head> tag like this<script src="${root!}/assets/avalon/avalon.min.js"></script> . I can get back end's data from ms-click="ldCode" . it get some validate code from back end.but eclipse give an warning Undefined attribute name (ms-click). and all avalon attributes get this warning.Is this a problem? Thanks for your time!

Upvotes: 0

Views: 2361

Answers (1)

T.J. Crowder
T.J. Crowder

Reputation: 1074999

Is this a problem?

Only if you want your HTML to be strictly valid (e.g., to pass validation). There is no ms-click attribute defined in the HTML specification; one is supposed to use a data- prefix on all non-standard attributes.

But many libraries violate that rule. It's only a problem if there's a conflict (two libs using the same name for different things) or HTML itself gets a conflicting attribute. But the rule is there, which is why Eclipse is warning you about those attributes.

Upvotes: 1

Related Questions