Ticket #180 (closed defect: fixed)

Opened 2 years ago

Last modified 1 year ago

painting

Reported by: wes@oxona.com Assigned to: somebody
Priority: low Milestone: MochiKit 1.4
Component: component2 Version: 1.0
Severity: critical Keywords: painting
Cc: painting

Description

When served as mime-type text/html, browsers make element.tagName uppercase, but when served as application/xhtml+xml at least firefox and opera make element.tagName lowercase per the spec.

The bug is at http://trac.mochikit.com/browser/mochikit/trunk/MochiKit/Style.js#L326 where it assumes "BODY" and "HTML" are uppercase. This causes firefox and opera to return NaN for the element position. Changing it to parent.tagName.toUpperCase() makes it work for me.

A quick grep of revision-1101 suggests that this bug might also exist in a few other places, but I haven't encountered it anywhere else yet.

thanks,

Wes Augur wes@oxona.com

Change History

09/25/06 16:59:05 changed by bob@redivi.com

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in [1144]

07/06/07 12:37:59 changed by anonymous

  • severity changed from normal to critical.
  • cc set to painting.
  • component changed from component1 to component2.
  • summary changed from MochiKit assumes uppercase element.tagName, XHTML mime-type uses lower-case to painting.
  • priority changed from normal to low.
  • version set to 1.0.
  • milestone set to MochiKit 1.4.
  • keywords set to painting.