Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is no need for optional attributes in the first place, because you can always just do this:

  <thing>
     <optattr>42</optattr>
     ...
  </thing>
insteadof

  <thing optattr="42">
    ...
  </thing>
Attributes exist in order to create a more compact syntax within XML/HTML tags, in ironic recognition of these notations being horribly verbose.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: