Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-html5

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-html5 - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

26

lib/angular-html5.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc