Permalink
Browse files

Fixes #26 - Make sure new HTML5 input types (like search) work in IE6/7

  • Loading branch information...
arian authored and fabiomcosta committed Feb 18, 2011
1 parent 5a4e742 commit ed9de974887d9e0b41e9b4e801bf1a33aaa2bda3
Showing with 12 additions and 0 deletions.
  1. +2 −0 SlickSpec/mocks/html5-shim.html
  2. +6 −0 SlickSpec/specs/html5.js
  3. +4 −0 Source/Slick.Finder.js
@@ -18,6 +18,8 @@ <h1><a href="#x">Hi</a></h1>
</header>
</div>
+<input type="search">
+
<section>
<h2 class="no-num no-toc" id="abstract">Abstract</h2>
View
@@ -31,4 +31,10 @@ describe('HTML5 new tags', function(){
});
+describe('HTML5 new input types', function(){
+
+ itShouldFind(1, 'input[type="search"]');
+
+});
+
};
View
@@ -837,6 +837,10 @@ local.attributeGetters = {
'tabindex': function(){
var attributeNode = this.getAttributeNode('tabindex');
return (attributeNode && attributeNode.specified) ? attributeNode.nodeValue : null;
+ },
+
+ 'type': function(){
+ return this.getAttribute('type');
}
};

0 comments on commit ed9de97

Please sign in to comment.