Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
markup
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
24 May 2010 at 13:44 UTC
Updated:
29 Jul 2014 at 18:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
andypostTagging, reviewing
Comment #3
andypostRe-roll
Comment #4
jacineYes, technically
<var>is a better choice. It's definitely one of those rarely used tags... I submitted the patch that got rid of the old<br/>tag and added the<span>, and at the time<var>didn't even come to mind.It definitely needs a space before the tag though, whether it is changed or not, so it's not totally squished against the comment title (my fault, sorry), so I'm changing this to a bug report.
Comment #5
andypostSure, I forget that span produces a space before it.
So attached 2 patches. First with NBSP and second with SPACE
I think nbsp-patch is more reasonable because time should be linked to comment subject
Comment #6
jacineSounds good to me. Thanks for the re-roll.
RTBC'ing 807744-comment-block-var-nbsp-d7.patch in #5.
Comment #7
dries commentedMy understanding of the var-tag is that it is used to indicate a variable or a parameter for an application. It does not sound appropriate to use in this context. At a minimum it requires some more research and discussion.
Comment #8
jacineI had the same reaction initially. It's definitely not a popular tag, so I tried to find some actual implementations. Even though I didn't find any, I found a better definition and examples:
Programming context example:
At the bottom of the search results screen, we have added "Next <var>n</var>" functionality to allow the user to view more than one screen of search results.Mathematical and placeholder in prose examples:
<p>If there are <var>n</var> pipes leading to the ice cream factory then I expect at <em>least</em> <var>n</var> flavors of ice cream to be available for purchase!</p>The definitions are still pretty vague, but it's not just for application variables and in this case, it seemed correct that the date is a variable because of the way it's formatted, but maybe I'm wrong? Maybe just because the date is variable doesn't mean it is a variable? I'm confused now.
Anyway, I'm sorry I jumped the gun here. I should have solicited more reviews before marking this RTBC. I am tagging "needs design review" in case anyone can provide some input.
Comment #9
damien tournoud commentedThe way I understand this,
<var>is for symbols (either mathematical or literal). It doesn't seem like the proper choice here.However, if we wrap this in a
<abbr>and add the full ISO8601 timestamp, we could have a nice microformat here.Comment #10
jacineGood idea Damien :)
Hopefully I did this correctly.
Comment #11
andypostJacine, I think we need nbsp before ABBR do not allow breaking this place so time would always attached to comment title.
Except this RTBC
Comment #12
jacineForgot about that. :)
Comment #13
damien tournoud commentedLooks very good to me.
Comment #14
andypost+1, RTBC
Comment #15
dries commentedBut why? I'm happy to add a microformat, but it feels like we're adding it just because we can. We can thinker more about this in D8?
Comment #16
jacine@Dries There is no other reason, so waiting to do this in D8 sounds fine. However, we do have a bug here that needs to be fixed for D7. A space is needed before the opening span, otherwise the text is squished together. Here's a quick screenshot of the problem and patch that just adds the needed space.
Then we can switch this back to D8 with a more appropriate title.
Comment #17
andypostLet's commit this space and leave microformat for D8
Comment #18
dries commentedCommitted to CVS HEAD. Thanks.
Comment #19
eric_a commentedPatch #16 accidentily lost D7 concat coding style...?
Comment #20
andypostFix for code-style
Comment #21
jacineThanks @andypost!
Ugh, I feel so bad. Sorry Dries! :(
Comment #22
webchickCommitted to HEAD.
Comment #23
andypostRe-title for D8
Comment #24
kscheirerI think was already committed, not sure why its in needs review state.