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

fix(ngInclude): correctly add svg-namespaced template content [[squashed]] #8997

Closed
wants to merge 3 commits into from

Conversation

caitp
Copy link
Contributor

@caitp caitp commented Sep 9, 2014

It is now possible for ngInclude to correctly load SVG content in non-blink
browsers, which do not sort out the namespace when parsing HTML.

Closes #7538
Closes #8981

It is now possible for ngInclude to correctly load SVG content in non-blink browsers, which do not
sort out the namespace when parsing HTML.

Closes angular#7538
@caitp caitp changed the title fix(ngInclude): correctly add non-html namespaced template content fix(ngInclude): correctly add non-html namespaced template content [[rebased]] Sep 9, 2014
@caitp caitp changed the title fix(ngInclude): correctly add non-html namespaced template content [[rebased]] fix(ngInclude): correctly add non-html namespaced template content [[squashed]] Sep 9, 2014
@caitp caitp changed the title fix(ngInclude): correctly add non-html namespaced template content [[squashed]] fix(ngInclude): correctly add svg-namespaced template content [[squashed]] Sep 9, 2014
@@ -267,6 +267,18 @@ var ngIncludeFillContentDirective = ['$compile',
priority: -400,
require: 'ngInclude',
link: function(scope, $element, $attr, ctrl) {
if (/SVG/.test($element[0].toString())) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this always going to be uppercase?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh right it will be the class name not the node name. Cool

@petebacondarwin
Copy link
Contributor

LGTM

@caitp caitp closed this in 6639ca9 Sep 9, 2014
@caitp
Copy link
Contributor Author

caitp commented Sep 9, 2014

Thanks Pete

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

Successfully merging this pull request may close these issues.

ngInclude doesn't work for SVG in Safari or Firefox (5263)
3 participants