diff --git a/lib/annotator.coffee b/lib/annotator.coffee index 0075b42..0e069de 100644 --- a/lib/annotator.coffee +++ b/lib/annotator.coffee @@ -102,6 +102,7 @@ class FailoverAnnotator extends Annotator if !token && !@secondaryAnnotator.eof() [token, remainder] = @secondaryAnnotator.one(remainder) + [token, remainder] reset: (pos) -> @primaryAnnotator.reset(pos) diff --git a/lib/dom.coffee b/lib/dom.coffee index 53a6859..7a7a889 100644 --- a/lib/dom.coffee +++ b/lib/dom.coffee @@ -4,6 +4,7 @@ class ElementShim @attributes ?= {} @children = [] nodeType: 1 + name: -> @tagName getAttribute: (attribute) -> if @attributes.hasOwnProperty(attribute) && @attributes[attribute] != undefined @attributes[attribute].toString()