Skip to main content

Search and Top Navigation

#5810 closed bug (fixed)

Opened July 08, 2010 04:51PM UTC

Closed July 16, 2010 03:50PM UTC

Last modified November 19, 2010 06:26PM UTC

Buttonset and applet error

Reported by: floepi Owned by:
Priority: minor Milestone: 1.8.3
Component: ui.button Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:
Description

Hi,

when using a Java applet and buttonset I get an "has no public field or method named htmlFor" error which is very similar to this one

http://old.nabble.com/jQuery-throwing-error-with-applet-on-page-in-FF-2.0.0.13-td16456878s27240.html

I fixed the error by adding in line 199 of the jquery.ui.button.js a LABEL prefix. Otherwise the buttonset tries to access the applet and throws an type Error. I think it has to do with the expandos or something.

this.buttonElement = this.element.parents().last()

.find( "label[for=" + this.element.attr("id") + "]" );

The jquery core contains some logic to prevent this problem in line

995 of 1.4.2

noData: {

"embed": true,

"object": true,

"applet": true

},

but I am not sure why this is not working for the buttonset.

Hope that helps.

Cheers,

Phil

Attachments (0)
Change History (3)

Changed July 16, 2010 03:50PM UTC by scottgonzalez comment:1

component: ui.coreui.button
milestone: TBD1.9
resolution: → fixed
status: newclosed

Fixed in 70481d9. Thanks Phil.

Changed August 04, 2010 01:31AM UTC by scottgonzalez comment:2

milestone: 1.91.8.3

Changed November 19, 2010 06:26PM UTC by Scott González comment:3

Button: Restrict DOM querying to labels. Fixes #5810 - Buttonset and applet error.

Changeset: 70481d9febd1b904577d2d5f4345e5a0e79a59f7