public
/
html-minifier.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ddbdf8
)
Push to stack after attribute processing
author
Duncan Beevers
<duncan@dweebd.com>
Tue, 2 Sep 2014 04:24:08 +0000
(23:24 -0500)
committer
Duncan Beevers
<duncan@dweebd.com>
Tue, 2 Sep 2014 04:24:15 +0000
(23:24 -0500)
src/htmlparser.js
patch
|
blob
|
history
diff --git
a/src/htmlparser.js
b/src/htmlparser.js
index
0535473
..
26093cd
100644
(file)
--- a/
src/htmlparser.js
+++ b/
src/htmlparser.js
@@
-305,13
+305,6
@@
unary = empty[ tagName ] || !!unary;
- if ( !unary ) {
- stack.push( tagName );
- }
- else {
- unarySlash = tag.match( endingSlash );
- }
-
var attrs = [];
rest.replace(attr, function () {
@@
-361,6
+354,14
@@
});
});
+ if ( !unary ) {
+ stack.push( tagName );
+ }
+ else {
+ unarySlash = tag.match( endingSlash );
+ }
+
+
if ( handler.start ) {
handler.start( tagName, attrs, unary, unarySlash );
}