Comparing version 1.1.6 to 1.2.1
@@ -30,2 +30,3 @@ ;(function (sax) { // wrapper for non-node envs | ||
'comment', | ||
'opentagstart', | ||
'attribute', | ||
@@ -707,2 +708,3 @@ 'opentag', | ||
parser.attribList.length = 0 | ||
emitNode(parser, 'onopentagstart', tag) | ||
} | ||
@@ -709,0 +711,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
"version": "1.1.6", | ||
"version": "1.2.1", | ||
"main": "lib/sax.js", | ||
@@ -8,0 +8,0 @@ "license": "ISC", |
@@ -171,2 +171,7 @@ # sax js | ||
`opentagstart` - Emitted immediately when the tag name is available, | ||
but before any attributes are encountered. Argument: object with a | ||
`name` field and an empty `attributes` set. Note that this is the | ||
same object that will later be emitted in the `opentag` event. | ||
`opentag` - An opening tag. Argument: object with `name` and `attributes`. | ||
@@ -173,0 +178,0 @@ In non-strict mode, tag names are uppercased, unless the `lowercase` |
66755
1447
226