Closed doingweb closed 10 years ago
Sweet! I'll give this a good review tomorrow. Thank you!
This will break already present code(apps) if we dont make it a new release?
This will also need re-rolled since #8 is merged.
Another question, does the grunt task throw an error if you use <ANY data-g+signin=""></ANY>
instead?
I haven't tested a case like that specifically, but I believe it would.
The grunt-contrib-htmlmin task uses html-minifier, which matches start tags (including attributes) with the following regex:
/^<([\w:-]+)((?:\s*[\w:-]+(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/
I tossed this in the nearest regex tester and it matched neither <g+signin>
nor <any data-g+signin="">
. It looks like it's the [\w:-]+
bits that match the tag name and attributes.
Merged in today's upstream changes and bumped version to 0.1.0.
Looks good. Thanks!
The
grunt-contrib-htmlmin
task throws a parse error when run on an HTML file that includes the<g+signin>
tag. This pull request avoids this and other syntax-related issues that come from using a+
in the tag name, by expanding the name togoogle-plus-signin
.I also renamed
component.json
tobower.json
to silence the deprecation complaint from bower, and updated the dependency version on Angular. If these changes are not desired, I can branch on an earlier commit and update the PR.