Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
_csoo
on Sept 28, 2007
|
parent
|
context
|
favorite
| on:
XML Sucks (a.k.a. Why S-expressions Are Better)
Something like that, yes, but attributes (a (@ (href /path))...) are ugly in particular.
So use :named attributes instead?
(a :href "/path" ...)
mojuba
on Sept 28, 2007
[–]
Nice indeed, but how about attribute names that themselves contain colons, or maybe start with a colon? XML/HTML is less restrictive in this regard: all that matters basically is spaces and '=' inside a tag.
_csoo
on Sept 28, 2007
|
parent
[–]
Replace the colon with a dash in your attribute names. Easy solution.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
So use :named attributes instead?