Ideas for Arc XP

section id and class attributes in a layout definition should be optional

In a layout definition, if an id or class attribute for a given sections element is not provided then the attribute should not be present in the resulting markup. Currently you get empty values ie <section class="" id=""> .... </section>. HTML purists gonna pure ...

Tangentially related, since cssClass is used in the layout def shouldn't cssId be used as well (for consistency sake, instead of "id")?

  • Greg MacGregor
  • Jan 4 2016
  • Shipped
Categories Developer Workflow, Layout
I need it... Not sure—just thought it was cool!
  • Attach files