From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.61; helo=out.smtp-auth.no-ip.com; envelope-from=kevin@carhart.net; receiver= Received: from out.smtp-auth.no-ip.com (smtp-auth.no-ip.com [8.23.224.61]) by hurricane.the-brannons.com (Postfix) with ESMTPS id E1951779AA for ; Thu, 21 Dec 2017 18:21:04 -0800 (PST) X-No-IP: carhart.net@noip-smtp X-Report-Spam-To: abuse@no-ip.com Received: from carhart.net (unknown [99.52.200.227]) (Authenticated sender: carhart.net@noip-smtp) by smtp-auth.no-ip.com (Postfix) with ESMTPA id 44FCF4D3 for ; Thu, 21 Dec 2017 18:23:36 -0800 (PST) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id vBM2NZER026171 for ; Thu, 21 Dec 2017 18:23:35 -0800 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id vBM2NY6m026167 for ; Thu, 21 Dec 2017 18:23:35 -0800 Date: Thu, 21 Dec 2017 18:23:34 -0800 (PST) From: Kevin Carhart To: edbrowse-dev@lists.the-brannons.com In-Reply-To: <20171111101510.eklhad@comcast.net> Message-ID: References: <20171111101510.eklhad@comcast.net> User-Agent: Alpine 2.03 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [Edbrowse-dev] document.head.querySelector X-BeenThere: edbrowse-dev@lists.the-brannons.com X-Mailman-Version: 2.1.24 Precedence: list List-Id: Edbrowse Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Dec 2017 02:21:05 -0000 I'm cleaning up my loose ends. Sorry it took this long. I'm going to send a startwindow with a few things including this from the 11th, where I can answer KD's latest followup from a week ago. This is about element type "a": > Does someone really ask for a.protocol? > They should ask for a.href.protocol, I would think. > Then maybe we should make a default href of type URL. > But if they want a.protocol then there's no harm setting that to empty string I guess. I don't know the thinking behind it, but if you demin the sole massive code file from xqsuperschool and go to 16343, that's my evidence that a.href and a.protocol is a thing. createWebSocketURL: function(url) { var a; if (url && !/^wss?:/i.test(url)) { a = document.createElement("a"); a.href = url; a.href = a.href; a.protocol = a.protocol.replace("http", "ws"); return a.href; } else { return url; } }, > > Karl Dahlke > -------- Kevin Carhart * 415 225 5306 * The Ten Ninety Nihilists