0

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!

2
  • Possible duplicate of Warnings of valid HTML5 attributes in Eclipse Commented May 26, 2018 at 8:05
  • @FaizMohamedHaneef - It's close, but that question is about a valid attribute (it has a data- prefix), and the top answer is that newer versions of Eclipse have been updated to understand data- attributes. The attributes ued by Avalon are not valid. Commented May 26, 2018 at 8:07

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

1 Comment

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.