Skip to content
Browse files

1.8.11RC3

  • Loading branch information...
1 parent f37dc38 commit 89dc6dd0ac837034c46f2d4b84bab40180662999 @aFarkas committed Jul 11, 2012
View
33 demos/demos/webforms/4-webforms-custom-validity.html
@@ -27,7 +27,7 @@
window.html5.shivMethods = false;
</script>
<script src="../../js-webshim/minified/polyfiller.js"></script>
- <script src="../../js-webshim/dev/extras/custom-validity.js"></script>
+ <script src="../../js-webshim/minified/extras/custom-validity.js"></script>
<script class="example">
$.webshims.setOptions({
@@ -158,22 +158,21 @@
<section>
<h3>Simple Demo</h3>
<form action="#">
-
<p class="required"><span>*</span> Required fields</p>
<fieldset>
<div class="form-element">
<label for="creditcard">
creditcard:
</label>
- <input name="creditcard" class="creditcard-input" type="number" id="creditcard" />
+ <input name="creditcard" class="creditcard-input" type="number" id="creditcard" />
</div>
<div class="form-element">
<label for="data-minlength">
data-minlength (5):
</label>
- <input data-minlength="5" name="data-minlength" type="text" id="data-minlength" />
+ <input data-minlength="5" name="data-minlength" type="text" id="data-minlength" />
</div>
@@ -182,27 +181,27 @@
data-partial-pattern (foo):
</label>
- <input data-partial-pattern="foo" name="data-partial-pattern" type="text" id="data-partial-pattern" />
+ <input data-partial-pattern="foo" name="data-partial-pattern" type="text" id="data-partial-pattern" />
</div>
<div class="form-element">
<label for="email">
email:
</label>
- <input name="email" type="email" id="email" />
+ <input name="email" type="email" id="email" />
</div>
<div class="form-element">
<label for="email-repeat">
repeat email (dependent-validation="email"):
</label>
- <input x-moz-errormessage="Please repeat the email field" data-dependent-validation="email" name="email-repeat" type="email" id="email-repeat" />
+ <input data-errormessage='{"dependent": "Please repeat the email field", "typeMismatch": "Please enter a valid email address"}' data-dependent-validation="email" name="email-repeat" type="email" id="email-repeat" />
</div>
<div class="form-element">
<label for="checkbox-group-id">
- checkbox-group:
+ checkbox-group:
</label>
- <input name="checkbox-group" type="checkbox" class="group-required" id="checkbox-group-id" />
+ <input name="checkbox-group" type="checkbox" class="group-required" id="checkbox-group-id" />
<input name="checkbox-group" type="checkbox" />
<input name="checkbox-group" type="checkbox" />
<input name="checkbox-group" type="checkbox" />
@@ -213,47 +212,47 @@
<label for="checkbox">
checkbox: (used as from-prop)
</label>
- <input name="checkbox" type="checkbox" id="checkbox" />
+ <input name="checkbox" type="checkbox" id="checkbox" />
<br />
<label for="checkbox-fill">
dependent-validation="checkbox":
</label>
- <input data-dependent-validation="checkbox" name="checkbox-fill" type="text" required="required" id="checkbox-fill" />
+ <input data-dependent-validation="checkbox" name="checkbox-fill" type="text" required="required" id="checkbox-fill" />
</div>
<div class="form-element">
<label for="checkbox2">
checkbox2: (used as from-prop)
</label>
- <input name="checkbox2" type="checkbox" id="checkbox2" />
+ <input name="checkbox2" type="checkbox" id="checkbox2" />
<br />
<label for="checkbox-fill2">
dependent-validation='{"from": "checkbox2", "toggle": true}':
</label>
- <input data-dependent-validation='{"from": "checkbox2", "toggle": true}' name="checkbox-fill2" type="text" required="required" id="checkbox-fill2" />
+ <input data-dependent-validation='{"from": "checkbox2", "toggle": true}' name="checkbox-fill2" type="text" required="required" id="checkbox-fill2" />
</div>
<div class="form-element">
<label for="date-from">
date-from (dependent-validation='{"from": "date-to", "prop": "max"}'):
</label>
- <input data-dependent-validation='{"from": "date-to", "prop": "max"}' name="date-from" type="date" id="date-from" />
+ <input data-dependent-validation='{"from": "date-to", "prop": "max"}' name="date-from" type="date" id="date-from" />
<br />
<label for="date-to">
date-to (dependent-validation='{"from": "date-from", "prop": "min"}'):
</label>
- <input data-dependent-validation='{"from": "date-from", "prop": "min"}' name="date-to" type="date" id="date-to" />
+ <input data-dependent-validation='{"from": "date-from", "prop": "min"}' name="date-to" type="date" id="date-to" />
</div>
<div class="form-element">
<label for="special1">
special1:
</label>
- <select name="special1" id="special1">
- <option value="test1">test1 (requires special2)</option>
+ <select name="special1" id="special1">
+ <option value="test1">test1 (requires special2)</option>
<option value="test 2">test 2 (requires special2)</option>
<option value="test 3">test 3 (does not require special2)</option>
</select>
View
2 demos/js-webshim/dev/polyfiller.js
@@ -26,7 +26,7 @@
var webshims = {
- version: '1.8.11pre',
+ version: '1.8.11RC3',
cfg: {
useImportantStyles: true,
//removeFOUC: false,
View
2 demos/js-webshim/minified/polyfiller.js
@@ -1,4 +1,4 @@
-(function(c){if(window.jQuery)c(jQuery),c=jQuery.noop;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("polyfiller",["jquery"],c)})(function(c){var C=c(document.scripts||"script"),o=c.event.special,D=c([]),g=window.Modernizr,r=window.asyncWebshims,B=g.addTest,y=parseFloat(c.browser.version,10),p=window.Object,E=window.html5||{};g.genericDOM=!!c("<video><div></div></video>")[0].innerHTML;g.advancedObjectProperties=g.objectAccessor=g.ES5=!!("create"in p&&"seal"in p);var d={version:"1.8.11pre",
+(function(c){if(window.jQuery)c(jQuery),c=jQuery.noop;"function"===typeof define&&define.amd&&define.amd.jQuery&&define("polyfiller",["jquery"],c)})(function(c){var C=c(document.scripts||"script"),o=c.event.special,D=c([]),g=window.Modernizr,r=window.asyncWebshims,B=g.addTest,y=parseFloat(c.browser.version,10),p=window.Object,E=window.html5||{};g.genericDOM=!!c("<video><div></div></video>")[0].innerHTML;g.advancedObjectProperties=g.objectAccessor=g.ES5=!!("create"in p&&"seal"in p);var d={version:"1.8.11RC3",
cfg:{useImportantStyles:!0,waitReady:!0,extendNative:!0,loadStyles:!0,disableShivMethods:!0,basePath:function(){var a=C.filter('[src*="polyfiller.js"]'),a=a[0]||a.end()[a.end().length-1],a=(c.support.hrefNormalized?a.src:a.getAttribute("src",4)).split("?")[0];return a=a.slice(0,a.lastIndexOf("/")+1)+"shims/"}()},bugs:{},browserVersion:y,modules:{},features:{},featureList:[],setOptions:function(a,b){"string"==typeof a&&void 0!==b?j[a]=!c.isPlainObject(b)?b:c.extend(!0,j[a]||{},b):"object"==typeof a&&
c.extend(!0,j,a)},addPolyfill:function(a,b){var b=b||{},e=b.f||a;if(!n[e])n[e]=[],n[e].delayReady=0,d.featureList.push(e),j[e]={};n[e].push(a);b.options=c.extend(j[e],b.options);z(a,b);b.methodNames&&c.each(b.methodNames,function(a,b){d.addMethodName(b)})},polyfill:function(){var a=function(b){var f=[],h;if(j.disableShivMethods&&g.genericDOM&&"html5Clone"in c.support)E.shivMethods=!1;var i=function(){c("html").removeClass("loading-polyfills long-loading-polyfills");c(window).unbind(".lP");clearTimeout(h)};
f.push("loading-polyfills");c(window).bind("load.lP error.lP",i);h=setTimeout(function(){c("html").addClass("long-loading-polyfills")},600);j.waitReady&&c.isReady&&d.warn("Call webshims.polyfill before DOM-Ready or set waitReady to false.");q(b,i);j.useImportantStyles&&f.push("polyfill-important");f[0]&&c("html").addClass(f.join(" "));j.loadStyles&&s.loadCSS("styles/shim.css");a=c.noop},b;return function(e){var f=[],e=e||d.featureList;"string"==typeof e&&(e=e.split(" "));b||(b=-1!==c.inArray("forms",
View
2 src/polyfiller.js
@@ -26,7 +26,7 @@
var webshims = {
- version: '1.8.11pre',
+ version: '1.8.11RC3',
cfg: {
useImportantStyles: true,
//removeFOUC: false,

0 comments on commit 89dc6dd

Please sign in to comment.
Something went wrong with that request. Please try again.