/    Sign up×
Community /Pin to ProfileBookmark

data-coords attribute – warning

Hello,

I am trying to validate my website ([URL=”http://students.uwsp.edu/ntowl795/cnmt210/finalproject/about.html”]http://students.uwsp.edu/ntowl795/cnmt210/finalproject/about.html[/URL]). It passes the validation test, but there are a few warnings. It is because I am using the “data-coords” attribute, which doesn’t exist. When I change “data-coords” to “coords” in the HTML (just 1 of the tags), the whole JavaScript fails, and nothing is displayed.

I tried changing the .js files to use the ‘coords’ rather than ‘data-coords,’ but it doesn’t matter. The whole JavaScript fails after changing just 1 attribute in the HTML.

Does anyone know why this is? Or how to fix it? It isn’t a huge deal, but I would like to get rid of the warnings, if possible. Thank you very much.

-TitanVex

to post a comment
HTML

1 Comments(s)

Copy linkTweet thisAlerts:
@rtretheweyMay 04.2012 — Custom attributes (ie. 'data-???') are apparently a relatively recent addition to HTML 5, so the validator may not yet be aware of them. If it is aware of them, it may be issuing a warning just to let you know of them in case you've made a mistake. In any case, the warnings are nothing to worry about here.
×

Success!

Help @TitanVex spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...