Closed
Bug 54222
Opened 25 years ago
Closed 25 years ago
The "noshade" attribute on Horizontal rule not set at all
Categories
(Core :: DOM: Editor, defect, P2)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
People
(Reporter: nasiruddin.shaikh, Assigned: anthonyd)
References
()
Details
(Whiteboard: [rtm++][p:2]FIX IN HAND, PATCH)
Attachments
(5 files)
|
694 bytes,
patch
|
Details | Diff | Splinter Review | |
|
842 bytes,
patch
|
Details | Diff | Splinter Review | |
|
946 bytes,
patch
|
Details | Diff | Splinter Review | |
|
1.02 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.25 KB,
patch
|
Details | Diff | Splinter Review |
Build id : 2000090720
platform : Solaris2.8(intel)
(1)open the composer
(2) insert a horizontal line using the icon.
(3) right click with mouse pointer on horizontal line, and look into the
horizontal line properties.
(4) change the width ,height and in alignment check 'center'. press o.k.
(5) Now again try to look into the horizontal line properties.
It will not show the current alignment and 3d-shading for horizontal line.
This works fine on netscape4.x browsers.
confirmed, but moving to future and assigning to cmanske.
anthonyd
Assignee: beppe → cmanske
Target Milestone: --- → Future
Comment 2•25 years ago
|
||
ok, I tested this a bit. on win98 this is working fine, the properties sheet is
updated and reselecting the props sheet displays the current state.
asking sujay to test on mac, linux and solaris to see where the disparity lies.
Comment 3•25 years ago
|
||
There cannot be platform differences for this.
The "noshade" attribute is not written correctly to the <hr> node on all
platforms.
The reason is because "noshade" doesn't have a value, and the "CloneAttributes"
method that copies edited attributes misses "noshade"
The fix is very easy - I'll attach it.
Comment 4•25 years ago
|
||
Comment 5•25 years ago
|
||
Nominating for rtm fix since it is extremely simple and safe, and without it
the attribute can't be set at all.
Status: NEW → ASSIGNED
Keywords: correctness,
rtm
Summary: The properties of Horizontal rule not shown properly. → The "noshade" attribute on Horizontal rule not set at all
Target Milestone: Future → M19
Comment 6•25 years ago
|
||
Reassigning to Kathy since I'm starting sabatical soon.
Assignee: cmanske → brade
Status: ASSIGNED → NEW
Comment 7•25 years ago
|
||
Reviews have been requested. Note that this is a "low risk/high visibility"
bug.
Comment 8•25 years ago
|
||
Comment 9•25 years ago
|
||
Kin suggested a much better fix: Change "CloneAttributes" to detect empty
values and set them on the target element. This will work for *all* similar
cases, not just for "noshade" on the <hr>. One that come to mind is the "border"
attribute on <table>, which may also be empty.
Reassigning the bug to kin so he can checkin if approved.
Assignee: brade → kin
Comment 10•25 years ago
|
||
note: there is a bug with rendering hrules with noshade that are too short;
buster currently has that bug and a fix is attached to it.
OS: Solaris → All
Hardware: Sun → All
Comment 11•25 years ago
|
||
The 2nd patch will not work. The implementation of nsDOMAttribute::GetValue()
only returns NS_OK as a result and a string that is either empty or contains the
value.
You either need to QI the node to an nsIContent and call GetAttribute(), which
will return the nsresult you are looking for, which is what
nsDOMAttribute::GetValue does, or figure out if presence of an attribute in an
nsIDOMNamedNodeMap indicates that the attribute is set.
Comment 13•25 years ago
|
||
It's not as simple as using the nsIContent interface instead because of the
way we set the attributes on the temporary element in the dialog.
Thus this needs more investigation to fix in CloneAttributes.
The first patch, which definitely and very simply fixes the specific "noshade"
attribute problem, should be used for the rtm fix.
Very low risk, completely understood behavior.
Comment 14•25 years ago
|
||
Comment 15•25 years ago
|
||
Kin, please include the required information per the rtm checkin rules, please
review the patch that charley attached on 9/29
Whiteboard: [rtm+]fix in hand
Updated•25 years ago
|
Priority: P3 → P2
Whiteboard: [rtm+]fix in hand → [rtm+][p:2]fix in hand
Comment 16•25 years ago
|
||
Kin, this needs super review and module owner approval, once those comments are
in, please remove the need info and ping me
Whiteboard: [rtm+][p:2]fix in hand → [rtm+ NEED INFO][p:2]fix in hand
Comment 17•25 years ago
|
||
Reassigning to anthonyd@netscape.com per beppe@netscape.com.
Assignee: kin → anthonyd
Status: ASSIGNED → NEW
Comment 18•25 years ago
|
||
Adding kin@netscape.com to Cc list.
| Assignee | ||
Comment 19•25 years ago
|
||
okay, I tested the fix kin and I talked about and that seems to solve the
problem here. gonna put an attachment on this report with the final patch.
anthonyd
Status: NEW → ASSIGNED
| Assignee | ||
Comment 20•25 years ago
|
||
| Assignee | ||
Comment 21•25 years ago
|
||
okay, so that is pretty much it. we still need to add some comments in to
discuss what is going on so people will understand.
anthonyd
Whiteboard: [rtm+ NEED INFO][p:2]fix in hand → [rtm+ NEED INFO][p:2]FIX IN HAND, PATCH
Comment 22•25 years ago
|
||
sr=kin@netscape.com
As anthonyd stated above, he will checkin in the change with a comment that
states that existence of an attribute in the named node map implies that it has
been set on the source, even if it has no value.
| Assignee | ||
Comment 23•25 years ago
|
||
| Assignee | ||
Comment 24•25 years ago
|
||
patch attached
sr=kin
r=mjudge
a=mjudge
requesting rtm++
anthonyd
Whiteboard: [rtm+ NEED INFO][p:2]FIX IN HAND, PATCH → [rtm+][p:2]FIX IN HAND, PATCH
| Assignee | ||
Comment 25•25 years ago
|
||
new comment for bug:
Presence of an attribute in the named node map indicates that it was set on the
element even if it has no value.
anthonyd
Comment 26•25 years ago
|
||
rtm++
Whiteboard: [rtm+][p:2]FIX IN HAND, PATCH → [rtm++][p:2]FIX IN HAND, PATCH
| Assignee | ||
Comment 27•25 years ago
|
||
checked in fix on branch and trunk.
anthonyd
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Comment 28•25 years ago
|
||
verified in 10/10 build, however found two other problems with H. Line props
dialog....
Status: RESOLVED → VERIFIED
| Reporter | ||
Comment 29•25 years ago
|
||
Tested again on the latest netscape 6 build (Build id:2000102302) on
solaris2.8(sparc). The problem is still there. The horizontal line properties
menu still shows the default value for 3d-shading and alignment.
Comment 30•25 years ago
|
||
nasiruddin.shaikh@eng.sun.com--see bug #57298 for a problem with alignment
controls in the hrule dialog. If you see other problems, could you please
clarify with a set of steps on how to reproduce?
Thanks!
| Reporter | ||
Comment 31•25 years ago
|
||
That's fine.
You need to log in
before you can comment on or make changes to this bug.
Description
•