0

Is such html markup valid?

<icon="pen"/>

And if so, how to manage it like via jQuery?

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
Adam Pietrasiak
  • 12,773
  • 9
  • 78
  • 91

1 Answers1

1

No, it is not valid. Don't do that.

There is a proposal for a custom elements spec, which could make icon allowable.

But following the element name with an = character is simply wrong.

Quentin
  • 914,110
  • 126
  • 1,211
  • 1,335