Bug Tracker

Modify

Ticket #1240 (closed bug: fixed)

Opened 6 years ago

Last modified 5 years ago

XUL and .val(...), .attr('value', ...)...

Reported by: darh Owned by:
Priority: minor Milestone: 1.2.5
Component: core Version: 1.1.2
Keywords: xul attr value Cc:
Blocking: Blocked by:

Description

As I figured out, XUL documents are identified as XML documents (via isXMLDoc()) and that creates a problem when you want to operate with certain elements with jQuery in XUL (radio button, checkboxes, various lists etc).

The problem is with these lines:

var fix = jQuery.isXMLDoc(elem) ? {} : {
	"for": "htmlFor",
....
	selected: "selected"
};

The quick fix was to do this:

var fix = jQuery.isXMLDoc(elem) ? {value: "value"} : {
....
};

The quick overview of the code following the fix shows no big problems, but without any test/build environment for jQuery that is all I can do about it.

Change History

comment:1 Changed 5 years ago by flesler

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to 1.2.5

This was probably fixed on 1.2.6 as this behavior changed.

Reopen if you see a fail.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.