Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix style attribute bindings in IE #448

Merged
merged 1 commit into from
Aug 24, 2018
Merged

Fix style attribute bindings in IE #448

merged 1 commit into from
Aug 24, 2018

Conversation

justinfagnani
Copy link
Collaborator

@justinfagnani justinfagnani commented Aug 23, 2018

Fixes #450

@ruphin
Copy link
Contributor

ruphin commented Aug 23, 2018

Creative solution to the IE11 style problem. I like it :)

@justinfagnani justinfagnani force-pushed the ie-attributes branch 2 times, most recently from e7e5182 to 2aaf75c Compare August 24, 2018 00:17
@justinfagnani
Copy link
Collaborator Author

@sorvell tests passing now, PTAL

@@ -55,6 +55,13 @@ export class TemplateResult {
// "...": no change. open === -1, close === -1
isTextBinding =
(close > -1 || isTextBinding) && s.indexOf('<', close + 1) === -1;

// IE does a bad. Work around it.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A better explanation would help =)

@justinfagnani justinfagnani changed the title Add tests for style, class, and value attribute bindings. Fix style attribute bindings in IE Aug 24, 2018
@justinfagnani justinfagnani merged commit 14f7e67 into master Aug 24, 2018
@justinfagnani justinfagnani deleted the ie-attributes branch August 24, 2018 03:40
neuronetio pushed a commit to neuronetio/lit-html that referenced this pull request Dec 2, 2019
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