Symbi0t2014-11-18 15:04:42
Symbi0t, 2014-11-18 15:04:42

Angularjs. Creation of new elements and attributes. Is it correct?

I understand that angular extends the declarativeness of html. But is it right in html to create a lot of unknowns, for the validator, elements and attributes? After all for these purposes there is xml.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Sergey, 2014-11-18

If we are talking about HTML4 then yes, not good. From the point of view of HTML5, custom elements are common, but in the case of attributes, it is enough to add data-* and everything will be valid again.

Rrooom, 2014-11-18

If you don't need to support older browsers, good luck.

Sergey Mishin, 2014-11-18


Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question