fix(browser_adapter.ts): baseElement.getAttribute#3214
fix(browser_adapter.ts): baseElement.getAttribute#3214PatrickJS wants to merge 1 commit intoangular:masterfrom
Conversation
There was a problem hiding this comment.
Hey, could you add a unit test for this?
There was a problem hiding this comment.
I added tests but ran into a problem with baseElement cache
There was a problem hiding this comment.
Could you add a resetBaseElement method to the DomAdapter (and all implementations). You can narrow it down to only the JS/Dart adapter via if (DOM.supportsDOMEvents()) {...}
There was a problem hiding this comment.
I think I did something wrong here when adding resetBaseElement and getBaseHref to the other adapters
There was a problem hiding this comment.
this fails due to baseElement being cache from the prevous test
a9cb434 to
b44620a
Compare
|
I'm having trouble correctly testing this in Dart. Can anyone help? |
|
@gdi2290 sure– what's the problem? |
f32a1ad to
e4379ec
Compare
|
@btford with Dart I'm trying not run these tests for Dart (since it's only in js atm). Using |
I think that's what he meant, but I'm not sure. :/ |
|
Moving this to alpha-35. |
currently throwing an error ```error Error during instantiation of LocationStrategy! (RouterLink -> Router -> Location -> LocationStrategy). ORIGINAL ERROR: TypeError: baseElement.attr is not a function ```
|
@btford can you take over this PR? you can either close and recreate it or push to my repo |
|
Yes, I'll get this in today. |
|
Fixed and pushed to presubmit. 👍 |
|
thanks! 👍 |
currently throwing an error
closes #3441