Merge pull request #648 from mcmonkey4eva/master

Pull request for the restoration of positive bugs
Fix for offline location tag logic.
Add ternary tag. Allow attribute usage in value tags (i.e.. math tag) if used properly. See meta.