Closed
Bug 7900
Opened 26 years ago
Closed 25 years ago
<input type=text> doesn't respect align=xxx for GFX rendering
Categories
(Core :: Layout: Form Controls, defect, P4)
Tracking
()
VERIFIED
WONTFIX
M18
People
(Reporter: rods, Assigned: rubydoo123)
Details
(Keywords: helpwanted, Whiteboard: still trying to determine if this bug is valid. dbaron and I think it is not.)
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<body bgcolor=#C0C0C0>
<FORM METHOD="POST" name="myform" >
<input type=button align=left value="Left" style="width:200px;">
<input type=button align=center value="Center" style="width:200px;">
<input type=button align=right value="Right" style="width:200px;">
<input type=button align=justify value="Justify" style="width:200px;">
</form>
</body>
</html>
Updated•26 years ago
|
Status: NEW → ASSIGNED
Target Milestone: M9
Updated•26 years ago
|
Summary: <input type=text> doesn't respect align=xxx for GFX rendering
Updated•26 years ago
|
Assignee: evaughan → buster
Status: ASSIGNED → NEW
Component: Layout → Editor
Comment 1•26 years ago
|
||
This is for Ender.
Comment 2•26 years ago
|
||
need for m9?
I don't think this is specifically a text control problem, but rather a
general problem with the interpretation of <INPUT>.
"align" is a legal HTML property for <INPUT>, but the 4.0 spec does not say what
it means specifically for <input type=text>. There are at least three possible
interpretations:
1) ignore it. This is what Nav 4.x does.
2) interpret it as does <IMG>, to effect the flow of content around the control.
3) use the attribute to align text within the control.
I think our choice of interpretation here effects all <INPUT> types.
Rod, what was your understanding when you submitted this bug?
Chris P., can you experiment with IE and report what it does?
Note the test case Rod put in his description is wrong, change "type=button" to
"type=text" for testing text controls.
This is not an editor bug, the editor handles alignment just fine. It's a form
control bug, because the form element needs to tell the editor how to display
the content.
I've cc'd some smart layout people to see if this issue has already been
discussed and decided elsewhere.
Despice the fact that the word "align" in section 17.4 links to section 15.1.2,
not 15.1.3, I think the answer is that the align attribute on the input element
is for <input type="image"> only. This is because the transitional DTD says:
<!ATTLIST INPUT
...
align %IAlign; #IMPLIED -- vertical or horizontal alignment --
where <!ENTITY % IAlign "(top|middle|bottom|left|right)" -- center? --> .
The Ialign entity is used in the ATTLISTs of the following elements: IMG,
OBJECT, APPLET, INPUT, IFRAME. IAlign seems to stand for Image-Alignment since
it is defined in the section on images. Furthermore, if it were for text-
alignment, the values would be (left|center|right|justify). The absence of
center and justify as allowed values (as they are in %align;) is quite
convincing, I think.
Updated•26 years ago
|
Whiteboard: move to later milestone?
Whiteboard: move to later milestone? → still trying to determine if this bug is valid. dbaron and I think it is not.
Updated•26 years ago
|
Target Milestone: M9 → M10
Comment 5•26 years ago
|
||
Moving to M10. This does not need to be resolved for M9.
Comment 6•26 years ago
|
||
Re: buster question.
IE4 ignores the align= attribute for controls other than image, just like
Nav 4.x does.
So solution 1 should be good provided it is compliant with the standard.
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → INVALID
Based on nav4/IE4 behavior, and the comments from dbaron and hyp-x@inf.bme.hu, I
think this bug is invalid. I don't think the text control is supposed to do
anything with it's content wrt align.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 8•26 years ago
|
||
Based on the comments, marking as verified invalid.
IE4 align the text in the input-box just fine. This is a very helpfull feature.
The comment from hyp-x@inf.bme.hu is wrong!!! IE4 does NOT ignore the align=
attribute for controls other than image, it also work with the 'text' type.
Status: VERIFIED → REOPENED
Priority: P3 → P4
Resolution: INVALID → ---
Target Milestone: M10 → M15
Comment 11•25 years ago
|
||
need to examine the CSS spec to see if it has anything to say on the matter.
This really doesn't have anything to do with CSS. CSS 'text-align' probably
should be able to affect a text box, but this bug is an HTML issue. The
questions are:
1. what is the expected behavior of ALIGN on INPUT elements? (what values can
it have?)
2. what is the current behavior?
I think the answer to (1) is that it should only affect those with TYPE="image",
although I'm not sure (and the values would be those allowed on IMG).
Comment 13•25 years ago
|
||
Reassigning to beppe (editor).
Assignee: buster → beppe
Status: ASSIGNED → NEW
Assignee | ||
Comment 14•25 years ago
|
||
dbaron is correct -- align within INPUT is for image alignment, marking this bug
as won't fix
Status: NEW → RESOLVED
Closed: 26 years ago → 25 years ago
Resolution: --- → WONTFIX
Comment 15•25 years ago
|
||
Verified. Authors can (and should) use "text-align" to align the text inside
text controls.
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•