Closed Bug 275227 Opened 20 years ago Closed 20 years ago

output element with label shows output before label

Categories

(Core Graveyard :: XForms, defect)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: aaronr, Assigned: doronr)

Details

Attachments

(2 files, 4 obsolete files)

Once I apply bug 269023 so that labels work, can see right away that
xforms:output elements' values will appear BEFORE their xforms:label's value. 
Testcase coming.
Attached file testcase
Testcase that shows the problem.
Attached patch quick fix (obsolete) — Splinter Review
Still figuring out how this works, but this seems to do the trick.  However,
selecting all the text is impossible now.
Assignee: aaronr → doronr
Status: NEW → ASSIGNED
Comment on attachment 170601 [details] [diff] [review]
quick fix

brian, I put you to sr since it is based off of how you handle label with input
element.  Thanks.
Attachment #170601 - Flags: superreview?(bryner)
Attachment #170601 - Flags: review?(aaronr)
Comment on attachment 170601 [details] [diff] [review]
quick fix

Sorry, found bugs when I tried your patch.  Will post testcase.
Attachment #170601 - Flags: review?(aaronr) → review-
built on the XFORMS_20050106_BRANCH with this patch.  With this testcase, what
the user SHOULD see is two lines; a label:value laid out next to another
label:value with a label:value on the line below.

What the user will see is a label:value with another label:value way off to the
right, outside the body.  Then on the next line is a label with its value on a
third line.
the most likely problem is the div.  that should probably be a span instead. 
you cannot have a block element as a child of an inline element.
(In reply to comment #6)
> the most likely problem is the div.  that should probably be a span instead. 
> you cannot have a block element as a child of an inline element.

Hmm, I guess I could have a span and 2 child textnodes.  That might work.
Comment on attachment 170601 [details] [diff] [review]
quick fix

minusing per aaron's comments.
Attachment #170601 - Flags: superreview?(bryner) → superreview-
Attached patch use a label rather than a div. (obsolete) — Splinter Review
Attachment #170621 - Attachment is obsolete: true
Attached patch use spans rather than label (obsolete) — Splinter Review
Attachment #170601 - Attachment is obsolete: true
Attachment #170833 - Attachment is obsolete: true
Attachment #170838 - Flags: review?(aaronr)
I choose to use html:span over html:label because I don't think we need the
extra functionality that html:label brings with it.
Attachment #170838 - Attachment is obsolete: true
Attachment #170841 - Flags: review?(aaronr)
Comment on attachment 170841 [details] [diff] [review]
add description of why not using a html:label per aaron

r=aaronr
Attachment #170841 - Flags: review?(aaronr) → review+
Attachment #170841 - Flags: superreview?(bryner)
Attachment #170841 - Flags: superreview?(bryner) → superreview+
Checked in through bug 278896.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Comment on attachment 170838 [details] [diff] [review]
use spans rather than label

turning off so it doesn't show in my review queue
Attachment #170838 - Flags: review?(aaronr)
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: