good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Just one remark: I think you better use the CSS class rather than the id, because refs to one node can occur more than one time, and the ID attribute is supposed to be unique within one document (at least for well formed (x)html). This is also what adrianh suggested in his post.
Also, I'm not completely sure about CSS classes consisting of only numbers being legal, so we have: And in your stylesheet: As for this idea being expensive at execution time, I hardly doubt so, as the node_id value should be known at page render time anyway for the href attribute; printing the same variable a second time should be rather trivial IMHO. -- In reply to Re: Use node # as CSS class names?
by joe++
|
|