From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: None (mailfrom) identity=mailfrom; client-ip=8.23.224.62; 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.62]) by hurricane.the-brannons.com (Postfix) with ESMTPS id 5B8F177DE8 for ; Sun, 20 Aug 2017 13:08:03 -0700 (PDT) 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 92E323E8; Sun, 20 Aug 2017 13:08:21 -0700 (PDT) Received: from carhart.net (localhost [127.0.0.1]) by carhart.net (8.13.8/8.13.8) with ESMTP id v7KK8KxV013785; Sun, 20 Aug 2017 13:08:20 -0700 Received: from localhost (kevin@localhost) by carhart.net (8.13.8/8.13.8/Submit) with ESMTP id v7KK8KAp013782; Sun, 20 Aug 2017 13:08:20 -0700 Date: Sun, 20 Aug 2017 13:08:20 -0700 (PDT) From: Kevin Carhart To: Karl Dahlke cc: Edbrowse-dev@lists.the-brannons.com In-Reply-To: Message-ID: References: <20170719113834.eklhad@comcast.net> <20170720103337.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: [Edbrowse-dev] getAttributeNode / setAttributeNode 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: Sun, 20 Aug 2017 20:08:03 -0000 Didn't we have this at one time? Maybe not, I don't remember. It is basically a scalar-to-object converter. Given a string, it wants the balloon blown up. It wants an attribute node whose name is the passed in string. document.getAttributeNode = function (name) { rv = document.createElement("Attr"); rv.setAttribute(name,this[name.toLowerCase()]); return rv; } document.setAttributeNode = function(name, v) { this.attributes[name.toLowerCase()] = v; this[name.toLowerCase()] = v; }