Closed Bug 224672 Opened 22 years ago Closed 22 years ago

usemap="#mapname" always changes into usemap="#testing"

Categories

(SeaMonkey :: Composer, defect)

defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: martin, Assigned: neil)

References

()

Details

(Keywords: regression)

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.5) Gecko/20031007 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.5) Gecko/20031007 If I set the attribute usemap and fill in the name of the map with "#mapname" (Mozilla shows the image map with and without # before mapname, IE6 needs the #) it is always changed into "#testing" when I close the box with the o.k.-button Reproducible: Always Steps to Reproduce: 1. open image properties 2. set attribute usemap="#mapname" (mapname is an example, cvould be everything) 3. close box image properties with o.k. Actual Results: attribute usemap has changed into usemap="#testing" Expected Results: usemap="#mapname" workaround: set usemap="mapname" and change it into usemap="#mapname" in HTML source
WFM, Win2k 1.6alpha
I've not tried to reproduce this, but is this the origin of the 'testing' name? http://lxr.mozilla.org/seamonkey/source/editor/ui/dialogs/content/EdImageProps.j s#215 213 // un-comment to see that inserting image maps does not work! 214 gImageMap = editor.createElementWithDefaults("map"); 215 gImageMap.setAttribute("name", "testing"); 216 var testArea = editor.createElementWithDefaults("area"); 217 testArea.setAttribute("shape", "circle"); 218 testArea.setAttribute("coords", "86,102,52"); 219 testArea.setAttribute("href", "test"); 220 gImageMap.appendChild(testArea); 221 222 // Assign to map if there is one 223 var mapName = gImageMap.getAttribute("name"); 224 if (mapName != "") 225 { 226 globalElement.setAttribute("usemap", ("#"+mapName)); 227 if (globalElement.getAttribute("border") == "") 228 globalElement.setAttribute("border", 0); 229 }
Attached patch Proposed patchSplinter Review
Dunno where they went but let's put 'em back :-)
Comment on attachment 134757 [details] [diff] [review] Proposed patch sr=bzbarsky. Bad people checking in their debug code!
Attachment #134757 - Flags: superreview+
.
Assignee: composer → neil.parkwaycc.co.uk
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
Fix checked in.
Status: NEW → 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: