Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix($compile): merge attributes safely to avoid upsetting IE8 #4207

Closed
wants to merge 1 commit into from

Conversation

purcell
Copy link
Contributor

@purcell purcell commented Oct 1, 2013

Merging an <input> with an <input> in IE8 will automatically break because the "type" attribute may not be set automatically on in-document elements. This change makes Angular replace only unchanged attributes. Additionally, source and target attributes are only merged by concatenation if their values differ, to avoid unexpected results such as 'type="text text"'.

Closes #4029

CLA has been submitted electronically.

(Note that a further logical related change might be to only merge attribute values by concatenation in the case of "style" or "class": see purcell@f919241, which is omitted from this pull request.)

@mary-poppins
Copy link

Thanks for the PR!

  • Contributor signed CLA now or in the past
    • If you just signed, leave a comment here with your real name
  • PR's commit messages follow the commit message format

If you need to make changes to your pull request, you can update the commit with git commit --amend.
Then, update the pull request with git push -f.

Thanks again for your help!

@purcell
Copy link
Contributor Author

purcell commented Oct 1, 2013

Stephen Purcell

Merging an <input> with an <input> in IE8 will automatically break
because the "type" attribute may not be set automatically on in-document
elements. This change makes Angular replace only unchanged
attributes. Additionally, source and target attributes are only merged
by concatenation if their values differ, to avoid unexpected results
such as 'type="text text"'.

Closes angular#4029
@purcell
Copy link
Contributor Author

purcell commented Oct 1, 2013

Travis build failure was not due to broken tests.

@lgalfaso
Copy link
Contributor

This is an issue that would only be important for IE8, this is for angular 1.2.x. Given that 1.2.x is only open for big regressions or security issues, then this PR is no longer relevant

@lgalfaso lgalfaso closed this Dec 28, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent behaviour on IE8
4 participants