Closed Bug 286901 Opened 20 years ago Closed 20 years ago

titledbutton dosen't exist anymore

Categories

(www.mozilla.org :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: joelnackman, Unassigned)

References

()

Details

Attachments

(1 file, 2 obsolete files)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050316 Firefox/1.0+
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2) Gecko/20050316 Firefox/1.0+

This doc uses <titledbutton>, which dosen't exist anymore.  In addition, it used
the right, left, and middle values for the attribute crop which are all
deprecated.  It also incorrectly used value where the attribute label should
have been.  I am attaching a patch.

Reproducible: Always

Steps to Reproduce:
1.  Go to the URL.
Attached patch A Patch (obsolete) — Splinter Review
This will fix the problems.
Attachment #177992 - Flags: review?(bzbarsky)
Attachment #177992 - Flags: review?(bzbarsky) → review?(neil.parkwaycc.co.uk)
bz tends to focus more on C++ core, so switching your review request to neil
Comment on attachment 177992 [details] [diff] [review]
A Patch

Well, it's an improvement, but there are some minor nits:
1. We have two sorts of buttons, regular buttons and toolbarbuttons
2. The regular button may contain arbitrary content
3. The pressed state is now the checked="true" attribute (there is no mixed
state)
4. crop="end" removes characters from the end of the string
Attachment #177992 - Flags: review?(neil.parkwaycc.co.uk) → review-
Attached patch Updated Patch (obsolete) — Splinter Review
I made the suggested changes and attached an updated patch.
Attachment #177992 - Attachment is obsolete: true
Attachment #178054 - Flags: review?(neil.parkwaycc.co.uk)
Comment on attachment 178054 [details] [diff] [review]
Updated Patch

>   The button's cropping style can be specified using
>   an attribute.  The attribute is called <code>crop</code>, and it
>-  has values of <code>left</code>, <code>middle</code>, and
>-  <code>right</code>.
>-  For example, with crop right, the string is
>+  has values of start, center, and end.
>+  For example, with crop end, the string is
>   truncated by removing characters on the right hand side of
Shouldn't these values be inside <code>? Over to fantasai to check on the
formatting.

Also describing crop="end" as removing characters from the end of the string
will endear you to RTL users.
Attachment #178054 - Flags: review?(neil.parkwaycc.co.uk) → review?(fantasai.bugs)
Comment on attachment 178054 [details] [diff] [review]
Updated Patch

Yes, all attribute values should also be in <code>. This includes 'normal',
'reverse', 'true', 'start', 'center', and 'end'.

  'with crop end'
should probably be
  'with <code>crop="end"</code>'

I have to say, you got lucky Anne already revamped the markup before you asked
me for review. :)
(You can see his changes in the Document History.)
Attachment #178054 - Flags: review?(fantasai.bugs) → review-
Third time's a charm.  I made all the suggested changes.
Attachment #178054 - Attachment is obsolete: true
Attachment #178189 - Flags: review?(fantasai.bugs)
 <p>The button can be locked into a pressed state
  by setting the <code>checked</code> attribute on the button to a value of
  true. This attribute, when true, indicates that the button should appear in
  a depressed state.

What does "setting the <code>checked</code> attribute on the button to a value
of true" mean?
(In reply to comment #8)
>  <p>The button can be locked into a pressed state
>   by setting the <code>checked</code> attribute on the button to a value of
>   true. This attribute, when true, indicates that the button should appear in
>   a depressed state.
> 
> What does "setting the <code>checked</code> attribute on the button to a value
> of true" mean?

Here's an example:

<button label="Example" checked="true" />
Comment on attachment 178189 [details] [diff] [review]
Updated Patch (Again)

So, in that case, 'true' should have been in <code> as well.
Attachment #178189 - Flags: review?(fantasai.bugs) → review+
Fix checked in, with that change.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Product: mozilla.org → Websites
Component: www.mozilla.org → General
Product: Websites → www.mozilla.org
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: