Closed Bug 158245 Opened 22 years ago Closed 22 years ago

Page info should list the alt for images in the media-tab in the tree.

Categories

(SeaMonkey :: Page Info, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: nick, Assigned: nick)

Details

Attachments

(1 file, 7 obsolete files)

It was very handy to easily check which images had alt attributes and which
images lacked one of those.
Attached patch Patch v1.0 (obsolete) — Splinter Review
I've added a new row to the <tree>, I've made it hidden by default.

This is the first XUL patch I ever contribute to Mozilla! =)
Keywords: patch
Attached patch v1.1: Removed extra colon (obsolete) — Splinter Review
Attachment #91911 - Attachment is obsolete: true
Comment on attachment 91919 [details] [diff] [review]
v1.1: Removed extra colon

Use hasAttribute() to test attribute existence.
Attachment #91919 - Flags: needs-work+
I've found a bug in the detailed view. An alt="", isn't the same as "not
specified", but as "" evaluates to false it regards such alt attribute as
non-existant.
Attachment #91919 - Attachment is obsolete: true
Attached patch Ops! Uses hasChildNodes(). (obsolete) — Splinter Review
Attachment #91992 - Attachment is obsolete: true
Comment on attachment 91996 [details] [diff] [review]
Ops! Uses hasChildNodes().

>+  if(item.hasAttribute("alt"))
>+    altText = item.alt;

This is no good.  <div alt="foo"> will test true for hasAttribute("alt") and
give a strict warning with that code.  You need to test both
hasAttribute("alt") and |"alt" in item|

also, space between "if" and "(" please, here and right after that.
Attachment #91996 - Flags: needs-work+
Well.. I'll stop addding things so this can be reviewed and (hopefully) checked
in.. =)
Attachment #91996 - Attachment is obsolete: true
> +  if (altText=="") {

If this is true, that means alt text is set.  Why does it matter whether the
textbox is italic if its contents are the empty string?
Comment on attachment 92062 [details] [diff] [review]
Shows an italic "empty string" for alt="" in detailed view

what's with the stars in notSet?
> +emptystring=empty string

Capitalize that, and sr=bzbarsky
Attached patch emptystring -> emptyString (obsolete) — Splinter Review
Attachment #92062 - Attachment is obsolete: true
I've filed a new bug, bug 158425 to put all those "Not specified" strings in
italics :).
I think he meant "Empty String" :)
Also, while you're working on this bug look for the bug where someone asks me to
add all the things that show up in the detail area as (hidden) columns in the
tree. Now that you've got this one under your belt, the others should be a snap.
Taking it as me, as adviced on IRC =).
Assignee: db48x → nick
Hehe.. done.. =)

db48x: sure, It will be nice to have the other values there. Another thing I
was thinking is.. the "no." row is useless for most people, why don't we hide
it by default?
Attachment #92068 - Attachment is obsolete: true
Comment on attachment 92070 [details] [diff] [review]
emptyString -> emptystring, "empty string" -> "Empty String"

+  var notSet = "*" + theBundle.getString("notset") + "*"

take the * out of this, and r=db48x

Also, feel free to hide the number column in this and any other tab it's not
hidden by default. I must have forgotten to fix it, I must have hidden them
with the colpicker and forgotten about the bug.
Boo, I liked the starts. The idea was to make that text stand-out from the real
specified text. But that text should be in italic anyway...
Comment on attachment 92070 [details] [diff] [review]
emptyString -> emptystring, "empty string" -> "Empty String"

sr=bzbarsky once db48x's comment is addressed.
Attachment #92070 - Flags: review+
Done.
Attachment #92070 - Attachment is obsolete: true
Attachment #92071 - Flags: superreview+
Attachment #92071 - Flags: review+
Status: NEW → ASSIGNED
Comment on attachment 92071 [details] [diff] [review]
No more starts, "no." hidden by default.

yea, r=db48x. who have you asked to check this in?
I've emailed drivers@mozilla.org, as I read in mozillazine. Besides that I
haven't asked anybody anything...
Keywords: approval
Comment on attachment 92071 [details] [diff] [review]
No more starts, "no." hidden by default.

a=scc for checkin to the mozilla TRUNK, after 1.1b tag/branch is cut
Attachment #92071 - Flags: approval+
Keywords: approval
Target Milestone: --- → mozilla1.2alpha
checked in
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: