Skip to content

Conversation

mallardduck
Copy link
Contributor

This PR should fix #100 and I'll continue looking into issue #99 as well to see if I can fix that too.

I found the issue while working with this library to create a tool I need for work. I wasn't getting the expected output from the outerHtml() function after updating link href's so I needed to dig deeper. After investigating the issue and finding issue #99 I realized they are very similar and related to the same underlying bugs.

This change will run the clear() function to empty any caches if an attribute has been changed, added, or removed.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 94.641% when pulling 43086df on mallardduck:patch-1 into 9663472 on paquettg:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 94.641% when pulling 43086df on mallardduck:patch-1 into 9663472 on paquettg:master.

@coveralls
Copy link

coveralls commented Dec 28, 2016

Coverage Status

Coverage increased (+0.02%) to 94.647% when pulling 5d05cb0 on mallardduck:patch-1 into 9663472 on paquettg:master.

While the Tag test doesn't test this issue, I think it's a good addition. This particular bug/issue isn't triggered until you ask the library to 'render' the html for you.

The HtmlTest does infact test this bug and when run on current master it WILL fail; however, it passes with the changes suggested.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 94.647% when pulling 7bcfa3a on mallardduck:patch-1 into 9663472 on paquettg:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.02%) to 94.647% when pulling 7bcfa3a on mallardduck:patch-1 into 9663472 on paquettg:master.

@mallardduck
Copy link
Contributor Author

This PR should fix both #99 and #100; in addition it adds tests that cover this bug.

@mallardduck
Copy link
Contributor Author

With the newest patch added to the PR this will also address issues in #88

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 94.689% when pulling f557f95 on mallardduck:patch-1 into 9663472 on paquettg:master.

1 similar comment
@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 94.689% when pulling f557f95 on mallardduck:patch-1 into 9663472 on paquettg:master.

@paquettg paquettg changed the base branch from master to dev July 23, 2017 23:17
@paquettg paquettg merged commit 3245731 into paquettg:dev Jul 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants