Skip to content
This repository has been archived by the owner on Apr 5, 2021. It is now read-only.

Fix status #57 #61

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix status #57 #61

wants to merge 3 commits into from

Conversation

jasonarends
Copy link

Initial status responses were missing the 'td' attrib so line 462 was causing it to just return instead of calling the handler. Added conditions to check for attribs and tags to assign correct event. Still handles original formatted responses with 'td' present.

@wpietri
Copy link
Owner

wpietri commented Dec 23, 2018

I appreciate the patch! Could you please also add some tests that a) will keep people from breaking this in the future, and b) convey the purpose of the code? See the tests folder for examples. Thanks!

@jasonarends
Copy link
Author

jasonarends commented Dec 25, 2018 via email

…is normally used to tell the type of data in the tag.

For LifeSpan responses there is no td, nor child element, but it includes 'type' attrib
Status responses have a child element with the tag name indicating the type.
@jasonarends
Copy link
Author

Added a few tests, hopefully that helps and also explains what the change is fixing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants