angular-html5
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -50,2 +50,4 @@ 'use strict'; | ||
}); | ||
// check attributes | ||
$('*').each(function (i, el) { | ||
@@ -61,12 +63,20 @@ var $el = $(el); | ||
}); | ||
// check tagName | ||
rPrefix.lastIndex = 0; | ||
if (rPrefix.test(el.tagName)) { | ||
$el.replaceWith(function () { | ||
return $('<data-' + el.tagName + '/>').attr($el.attr()).append($el.html()); | ||
}); | ||
} | ||
}); | ||
// check tagNames | ||
var hasAlteredHtml; | ||
do { | ||
hasAlteredHtml = false; | ||
$('*').each(function (i, el) { | ||
var $el = $(el); | ||
rPrefix.lastIndex = 0; | ||
if (rPrefix.test(el.tagName)) { | ||
hasAlteredHtml = true; | ||
$el.replaceWith(function () { | ||
return $('<data-' + el.tagName + '/>').attr($el.attr()).append($el.html()); | ||
}); | ||
} | ||
}); | ||
} while (hasAlteredHtml); | ||
return $.html(); | ||
@@ -73,0 +83,0 @@ } |
{ | ||
"name": "angular-html5", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Change your ng-attributes to data-ng-attributes for html5 validation", | ||
@@ -5,0 +5,0 @@ "repository": "pgilad/angular-html5", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11117
137