Skip to content

Commit

Permalink
Updated to latest dependencies & domtagger to fix sparse attributes i…
Browse files Browse the repository at this point in the history
…ssue
  • Loading branch information
WebReflection committed Oct 18, 2019
1 parent d452814 commit d105ee1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 27 deletions.
8 changes: 4 additions & 4 deletions esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ var hyperHTML = (function (document) {
// Use a better RegExp to find last attribute instead
// of trusting `name` is what we are looking for.
// Thanks IE/Edge, I hate you both.
new RegExp('^(?:|[\\S\\s]*?\\s)(' + name + ')\\s*=\\s*(\'|")', 'i'), '$1');
new RegExp('^(?:|[\\S\\s]*?\\s)(' + name + ')\\s*=\\s*(\'|")[\\S\\s]*', 'i'), '$1');
var value = attributes[realName] || // the following ignore is covered by browsers
// while basicHTML is already case-sensitive

Expand Down
8 changes: 4 additions & 4 deletions min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,19 @@
"url": "https://github.com/WebReflection/hyperhtml/issues"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"ascjs": "^3.0.1",
"basichtml": "^1.0.0",
"coveralls": "^3.0.4",
"basichtml": "^1.1.1",
"coveralls": "^3.0.7",
"drop-babel-typeof": "^1.0.3",
"istanbul": "^0.4.5",
"npm-dollar": "^2.2.1",
"rollup": "^1.16.4",
"rollup": "^1.24.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-node-resolve": "^5.2.0",
"tressa": "^0.3.1",
"uglify-js": "^3.6.0"
"uglify-js": "^3.6.2"
},
"greenkeeper": {
"ignore": [
Expand All @@ -153,7 +153,7 @@
"@ungap/weakmap": "^0.1.4",
"disconnected": "^0.2.1",
"domdiff": "^2.1.0",
"domtagger": "^0.5.9",
"domtagger": "^0.5.10",
"hyperhtml-style": "^0.1.2",
"hyperhtml-wire": "^2.1.0",
"lightercollective": "^0.3.0"
Expand Down
9 changes: 2 additions & 7 deletions test/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,11 @@
document.write('<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-shim.min.js"><' + '/script>');
document.write('<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/4.5.7/es5-sham.min.js"><' + '/script>');
}</script>
<script>document.write('<script src="../index.js?_=' + Math.random() + '"><' + '/script>')</script>
<script>document.write('<script src="../index.js"><' + '/script>')</script>
<script>
this.onload = function () {
'use strict';
var _templateObject = _taggedTemplateLiteral(['\n <div> ', ' </div>\n'], ['\n <div> ', ' </div>\n']);
function _taggedTemplateLiteral(strings, raw) { return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
var text = 'I am OK';
try {
document.body.appendChild(hyperHTML.wire()(_templateObject, text));
} catch(e) { document.body.textContent = e.message }
document.body.appendChild(hyperHTML.wire()`<div class="block__element${Math.random() < .5 ? '--modifier' : ''}">asd</div>`);
};
</script>
</head>
Expand Down
8 changes: 4 additions & 4 deletions umd.js

Large diffs are not rendered by default.

0 comments on commit d105ee1

Please sign in to comment.