Permalink
Browse files

reorganize

  • Loading branch information...
1 parent b48111b commit 26a3893fd536eca6a443532d3394795fa02e00f4 kangax committed Jun 9, 2008
View
@@ -10,6 +10,7 @@ Protolicious is a set of javascript snippets based on prototype.js
* <tt>Element#swapClassName</tt>
* <tt>Element#enableClassName</tt>
* <tt>Element#contains</tt>
+* <tt>Element#indexOf</tt>
== Function extensions
View
@@ -205,7 +205,8 @@ Element.extendIframe = function(element) {
copy(Element.Methods, proto);
copy(Element.Methods.Simulated, proto, true);
return element;
-}
+};
+
/**
* Element.indexOf(@element) -> Number|undefined
* returns index of element in its parent or undefined if parent does not exist
@@ -218,6 +219,6 @@ Element.Methods.indexOf = function(element) {
var parent = $(element.parentNode);
if (!parent) return;
return parent.childElements().indexOf(element);
-}
+};
Element.addMethods();
File renamed without changes.
@@ -0,0 +1,9 @@
+// IE and Opera are missing .innerHTML support for TABLE-related and SELECT elements
+var selectCanBeUpdated = (function(){
+ var select = document.createElement('select');
+ select.innerHTML = '<option>test<\/option>';
+ var firstChild = select.childNodes[0];
+ return !!(firstChild &&
+ firstChild.tagName &&
+ firstChild.tagName.toUpperCase() == 'OPTION');
+})();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 26a3893

Please sign in to comment.