Re: [jQuery] Having an issue accessing a node.

2006-12-31 Thread Klaus Hartl
Klaus Hartl schrieb: > Yehuda Katz schrieb: >> I'm not sure I read it that way: >> >> The following example illustrates that id >> and name >> must be the >> same when both appear i

Re: [jQuery] Having an issue accessing a node.

2006-12-31 Thread Klaus Hartl
Yehuda Katz schrieb: > I'm not sure I read it that way: > > The following example illustrates that id > and name > must be the > same when both appear in an element's start tag: >

Re: [jQuery] Having an issue accessing a node.

2006-12-31 Thread Yehuda Katz
I'm not sure I read it that way: The following example illustrates that idand name must be the same when both appear in an element's start tag: ... The language is pretty unambiguo

Re: [jQuery] Having an issue accessing a node.

2006-12-31 Thread Klaus Hartl
Yehuda Katz schrieb: > HTML 4.01, section 12.2.3: Yes, but this refers to anchors only. Obviously following construct makes no sense: ... ... An anchor ... Now there are two anchors in the document with the same namespace. Which one should the browser focus when clicking on a link poin

Re: [jQuery] Having an issue accessing a node.

2006-12-31 Thread Yehuda Katz
HTML 4.01, section 12.2.3: "The id and nameattributes share the same name space. This means that they cannot both define an anchor with the same name in the same document. It is p

Re: [jQuery] Having an issue accessing a node.

2006-12-31 Thread Oliver Boermans
I have seen evidence that Internet Explorer (at least 6) treats name and id interchangeably. On 31/12/06, Michael Geary <[EMAIL PROTECTED]> wrote: > > ...since the spec requires name and ID to be > > identical, it's technically illegal to have a name with "[" > > and an ID as well (since IDs canno

Re: [jQuery] Having an issue accessing a node.

2006-12-31 Thread Michael Geary
> ...since the spec requires name and ID to be > identical, it's technically illegal to have a name with "[" > and an ID as well (since IDs cannot contain "["). Um, where does it say the name and id have to be the same? -Mike ___ jQuery mailing lis

Re: [jQuery] Having an issue accessing a node.

2006-12-30 Thread Yehuda Katz
What's interesting is that you can use traditional DOM methods to easily access nodes by name. According to the spec, name and id share a namespace, and form["ident"] (same as form.ident) returns an element in the form with the id or name "name". So you might be able to optimize your code a bit. T

Re: [jQuery] Having an issue accessing a node.

2006-12-30 Thread Blair McKenzie
$("[EMAIL PROTECTED]'blog[headline]']") will work. A lot slower than selecting by id though. Blair. On 12/30/06, Aaron Heimlich <[EMAIL PROTECTED]> wrote: On 12/30/06, Jason Yeckel <[EMAIL PROTECTED]> wrote: > > Blast but it groups them in to an array and is so nice sometimes lol > *shrugs* >

Re: [jQuery] Having an issue accessing a node.

2006-12-30 Thread Aaron Heimlich
On 12/30/06, Jason Yeckel <[EMAIL PROTECTED]> wrote: Blast but it groups them in to an array and is so nice sometimes lol *shrugs* [] is perfectly acceptable in the "name" attribute[1][2] (in fact, PHP will even use them to create arrays of form variables[3]). It is not, however, acceptable i

Re: [jQuery] Having an issue accessing a node.

2006-12-29 Thread Jason Yeckel
Blast but it groups them in to an array and is so nice sometimes lol *shrugs* I just changed the names no issue thought i thought _ was not a good id and people had issues with it i guess that is not true? Jason Y Michael Geary wrote: >> $('#blog[headline]').val('newvalue'); >> >> > value="" />

Re: [jQuery] Having an issue accessing a node.

2006-12-29 Thread Michael Geary
> $('#blog[headline]').val('newvalue'); > > value="" /> > > It seems i cant access the node for [] in the name breaks the > ability to access it unless i am doing something wrong? [] are not valid characters in an id attribute: http://www.w3.org/TR/html4/types.html#type-name Browsers and jQu

[jQuery] Having an issue accessing a node.

2006-12-29 Thread Jason Yeckel
$('#blog[headline]').val('newvalue'); It seems i cant access the node for [] in the name breaks the ability to access it unless i am doing something wrong? Jason Y www.purepressure.com ___ jQuery mailing list discuss@jquery.com http://jquery.com/dis