S
S
Symbi0t2014-11-18 15:04:42
Angular
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)
S
Sergey, 2014-11-18
@Symbi0t

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.

R
Rrooom, 2014-11-18
@Rrooom

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

S
Sergey Mishin, 2014-11-18
@sergeysmishin

www.w3.org/TR/custom-elements

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question