Skip to main content

Bug Tracker

Side navigation

#3245 closed bug (fixed)

Opened August 11, 2008 04:43PM UTC

Closed March 30, 2011 08:56PM UTC

Can not select a form using the action attribute

Reported by: mw44118 Owned by: flesler
Priority: minor Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: selector form action attribute Cc:
Blocked by: Blocking:
Description

I had a form like

<form action="xyz">

</form>

I tried to select it with

$("form[action='xyz']")

and I got back an empty set of nodes.

Attachments (2)
  • 3245.html (1.8 KB) - added by nathanhammond August 15, 2008 12:23AM UTC.

    Correlating Info

  • special.html (6.3 KB) - added by nathanhammond August 21, 2008 07:43PM UTC.

    Test case for href, action, and src attributes.

Change History (7)

Changed August 11, 2008 11:36PM UTC by ThrushAAX comment:1

however $("form[action*='xyz']") does work...

Changed August 12, 2008 05:47PM UTC by flesler comment:2

component: coreselector
owner: → flesler
status: newassigned

This is related to another ticket... but I don't recall the number right now.

We'll try to fix this for 1.3 (without hitting on perfomance).

Changed August 15, 2008 12:13AM UTC by nathanhammon comment:3

Related to 2747 I think.

Changed August 21, 2008 07:16PM UTC by nathanhammon comment:4

This is actually a separate bug from 2747. To make this one consistent everywhere we only have to add 'action' into the list of attributes that are special to force them to be accessed using getAttribute('action'). Accessing Element.action (DOM level 0) pulls back a fully qualified domain in IE8 and FF. Attaching a patch.

Changed August 21, 2008 07:43PM UTC by nathanhammon comment:5

So I was wrong. Something a little funky is going on. I'm attaching a complete test comparison for href, src, and action instead.

Changed February 08, 2009 06:34PM UTC by dmethvin comment:6

See also #3113 and #2662.

Changed March 30, 2011 08:56PM UTC by danheberden comment:7

resolution: → fixed
status: assignedclosed