Opened 16 years ago
Closed 15 years ago
#1271 closed bug (fixed)
attribute in FORM?
Reported by: | achun | Owned by: | john |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
html code:
<div foo='defineattribute'></div> <form> <input name='foo'> </form>
js code:
$('[@act]').each(function(){ //code });
I want cat DIV only,but FORM ........ Of course . fixed js code:
$('[@act]').each(function(){ if ('FORM'==this.tagName) return;//Trouble....... //code });
Attachments (1)
Change History (5)
comment:1 Changed 16 years ago by
comment:2 Changed 16 years ago by
Milestone: | 1.1.3 → 1.1.4 |
---|---|
Owner: | set to john |
Version: | 1.1.2 → 1.1.3 |
comment:3 Changed 15 years ago by
Milestone: | 1.1.4 → 1.2.2 |
---|---|
need: | Review → Patch |
Version: | 1.1.3 → 1.2.1 |
comment:4 Changed 15 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Although this case is now improved, .attr() will still return the element if no attribute is found.
That means that if do add a foo attribute to the form, at least empty, it will work as expected.
Note: See
TracTickets for help on using
tickets.
sory!