From 0135a24315b5bc6bc11a8dad5b0dd52293a5873a Mon Sep 17 00:00:00 2001 From: Harry Garrood Date: Wed, 6 Apr 2016 17:15:01 +0100 Subject: [PATCH] Various ffi fixes --- src/DOM/HTML/HTMLInputElement.js | 44 ++-------------------------- src/DOM/HTML/HTMLMapElement.js | 2 +- src/DOM/HTML/HTMLMeterElement.js | 4 +-- src/DOM/HTML/HTMLTableCellElement.js | 2 +- src/DOM/Node/Node.js | 2 +- 5 files changed, 7 insertions(+), 47 deletions(-) diff --git a/src/DOM/HTML/HTMLInputElement.js b/src/DOM/HTML/HTMLInputElement.js index 5e1cb78..d7e9f8a 100644 --- a/src/DOM/HTML/HTMLInputElement.js +++ b/src/DOM/HTML/HTMLInputElement.js @@ -131,9 +131,9 @@ exports.setDisabled = function (disabled) { // ---------------------------------------------------------------------------- -exports.input = function (input) { +exports.form = function (input) { return function () { - return input.input; + return input.form; }; }; @@ -591,46 +591,6 @@ exports["stepDown'"] = function (n) { // ---------------------------------------------------------------------------- -exports.length = function (input) { - return function () { - return input.length; - }; -}; - -exports.setLength = function (length) { - return function (input) { - return function () { - input.length = length; - }; - }; -}; - -// ---------------------------------------------------------------------------- - -exports.selectedOptions = function (input) { - return function () { - return input.selectedOptions; - }; -}; - -// ---------------------------------------------------------------------------- - -exports.selectedIndex = function (input) { - return function () { - return input.selectedIndex; - }; -}; - -exports.setSelectedIndex = function (selectedIndex) { - return function (input) { - return function () { - input.selectedIndex = selectedIndex; - }; - }; -}; - -// ---------------------------------------------------------------------------- - exports.value = function (input) { return function () { return input.value; diff --git a/src/DOM/HTML/HTMLMapElement.js b/src/DOM/HTML/HTMLMapElement.js index 7569691..2f74392 100644 --- a/src/DOM/HTML/HTMLMapElement.js +++ b/src/DOM/HTML/HTMLMapElement.js @@ -9,7 +9,7 @@ exports.name = function (map) { }; }; -exports.setDisabled = function (name) { +exports.setName = function (name) { return function (map) { return function () { map.name = name; diff --git a/src/DOM/HTML/HTMLMeterElement.js b/src/DOM/HTML/HTMLMeterElement.js index 17e1d2d..881b0b4 100644 --- a/src/DOM/HTML/HTMLMeterElement.js +++ b/src/DOM/HTML/HTMLMeterElement.js @@ -73,7 +73,7 @@ exports.high = function (meter) { }; }; -exports.setLow = function (high) { +exports.setHigh = function (high) { return function (meter) { return function () { meter.high = high; @@ -89,7 +89,7 @@ exports.optimum = function (meter) { }; }; -exports.setLow = function (optimum) { +exports.setOptimum = function (optimum) { return function (meter) { return function () { meter.optimum = optimum; diff --git a/src/DOM/HTML/HTMLTableCellElement.js b/src/DOM/HTML/HTMLTableCellElement.js index 6f8e826..ce80511 100644 --- a/src/DOM/HTML/HTMLTableCellElement.js +++ b/src/DOM/HTML/HTMLTableCellElement.js @@ -9,7 +9,7 @@ exports.colSpan = function (cell) { }; }; -exports.setSpan = function (colSpan) { +exports.setColSpan = function (colSpan) { return function (cell) { return function () { cell.colSpan = colSpan; diff --git a/src/DOM/Node/Node.js b/src/DOM/Node/Node.js index 55161de..f30fb35 100644 --- a/src/DOM/Node/Node.js +++ b/src/DOM/Node/Node.js @@ -124,7 +124,7 @@ exports.lookupNamespaceURI = function (ns) { }; }; -exports.lookupNamespaceURI = function (ns) { +exports.isDefaultNamespace = function (ns) { return function (node) { return function () { return node.isDefaultNamespace(ns);