Danny Fox
Danny Fox

Reputation: 40709

How to check lang attribute support in javascript?

How to check in javascript, if the elements support the HTML5 lang attribute?

Upvotes: 0

Views: 132

Answers (1)

austincheney
austincheney

Reputation: 1199

You cannot. HTML(5) does not have any built-in validation capabilities. If HTML were an instance of a schema language then you could easily validate against the schema.

Upvotes: 1

Related Questions