Path: csiph.com!3.eu.feeder.erje.net!feeder.erje.net!news.mb-net.net!open-news-network.org!.POSTED.0.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch!not-for-mail From: Thomas 'PointedEars' Lahn Newsgroups: comp.lang.javascript,comp.infosystems.www.authoring.stylesheets Subject: Re: case insensitive flag Supersedes: <3353785.iIbC2pHGDl@PointedEars.de> Followup-To: comp.lang.javascript Date: Fri, 05 Mar 2021 02:23:07 +0100 Organization: PointedEars Software (PES) Lines: 36 Message-ID: <8732590.CDJkKcVGEf@PointedEars.de> References: <7N6dnVyeX6o-QqD9nZ2dnUU7-XXNnZ2d@westnet.com.au> <2763802.e9J7NaK4W3@PointedEars.de> Reply-To: Thomas 'PointedEars' Lahn Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8Bit Injection-Info: gwaiyur.mb-net.net; posting-host="0.237.197.178.dynamic.wless.lssmb00p-cgnat.res.cust.swisscom.ch:178.197.237.0"; logging-data="11810"; mail-complaints-to="abuse@open-news-network.org" User-Agent: KNode/4.14.10 Cancel-Key: sha1:vNHbyHgCpTToUwUMHzwS/95sYnU= Cancel-Lock: sha1:YrvpONhHQpL0aVUCSRTM89SL7aw= X-User-ID: U2FsdGVkX19p7rcLk+BKxdcfU36HAzHc67AA6g7GS2IL/rtNu37Leg== X-Face: %i>XG-yXR'\"2P/C_aO%~;2o~?g0pPKmbOw^=NT`tprDEf++D.m7"}HW6.#=U:?2GGctkL,f89@H46O$ASoW&?s}.k+&. On 5/03/2021 12:02 am, Thomas 'PointedEars' Lahn wrote: >> Andrew Poulos wrote: >>> document.querySelectorAll('a[href^="goto"]') >>> >>> that failed because users were setting the href to cases different from >>> the expected case. >> >> The attribute name, or the attribute value? Well? >>> document.querySelectorAll('a[href^="goto" i]') >> This is a relatively new feature: >> >> >> > > This page indicates that it works in most places (except for IE) > When in doubt, probably trust caniuse.com more than MDN. >> […] > Thanks for the code. You’re welcome. I learned a thing or two about the new Array-related features and XPath while writing it; so thank you for the question :) F’up2 comp.lang.javascript -- PointedEars FAQ: | | Twitter: @PointedEars2 | Please do not cc me./Bitte keine Kopien per E-Mail.