So I have the following code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> <style type="text/css"> input:not([type="submit"]):not([type="text"]) {background:#f00;} </style> </head> <body> <input type="password" /> <input type="radio" /> <input type="text" /> <br /><input type="submit" /> </body> </html> If I try to select any input field that doesn''t have "text" or "submit" as a type using: $$(''input:not([type="button"]):not([type="submit"])'') I get nothing in return. If I only use the :not psuedo-class once, it works. I think this could be a bug. Any suggestions? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
tobie
2007-Apr-30 06:37 UTC
Re: CSS psuedo-class ":not" cannot be specified more than once
yap... me too... Submit a ticket (http://prototypejs.org/contribute) Tobie On Apr 30, 1:38 am, TheJase <thej...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> So I have the following code: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml"> > <head> > <meta http-equiv="Content-Type" content="text/html; > charset=iso-8859-1" /> > <title>Untitled Document</title> > <style type="text/css"> > input:not([type="submit"]):not([type="text"]) {background:#f00;} > </style> > </head> > > <body> > <input type="password" /> > > <input type="radio" /> > <input type="text" /> > > <br /><input type="submit" /> > </body> > </html> > > If I try to select any input field that doesn''t have "text" or > "submit" as a type using: > > $$(''input:not([type="button"]):not([type="submit"])'') > > I get nothing in return. If I only use the :not psuedo-class once, it > works. I think this could be a bug. Any suggestions?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---