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!
1 Answer
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.
1 Comment
wylasr
I really appreciate for your time, I use data- prefix , it works, all warning disappear. but I decide to keep it warning, I don't want my file to be strictly valid.I just want to ensure if i'm forget to do something
data-prefix), and the top answer is that newer versions of Eclipse have been updated to understanddata-attributes. The attributes ued by Avalon are not valid.