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

Failed to execute 'setAttributeNS' on 'Element': '' - on xmlns:v="..." #14865

Closed
sod opened this issue Mar 2, 2017 · 13 comments · Fixed by #14874
Closed

Failed to execute 'setAttributeNS' on 'Element': '' - on xmlns:v="..." #14865

sod opened this issue Mar 2, 2017 · 13 comments · Fixed by #14874
Labels
area: core Issues related to the framework runtime regression Indicates than the issue relates to something that worked in a previous version type: bug/fix

Comments

@sod
Copy link
Contributor

sod commented Mar 2, 2017

I'm submitting a ... (check one with "x")

[x] bug report

Current behavior
given this template (a breadcrumb with rdf attributes for search engines):

<ol class="breadcrumb" xmlns:v="http://rdf.data-vocabulary.org/#">
    <li typeof="v:Breadcrumb">
        <a href="/foo" rel="v:url" property="v:title">foo</a>
    </li>
</ol>

angular 2.4.9 - works: https://plnkr.co/edit/1Wyd4n1t8RPw7JTC4nYe?p=preview
angular 4.0.0-rc.2 - throws: https://plnkr.co/edit/qBc4ODqbBkPlMDrQVNf8?p=preview

Error:
image

@sod
Copy link
Contributor Author

sod commented Mar 2, 2017

The state right before the error happens:

image

Maybe just add xmlns: "http://www.w3.org/1999/xhtml" to NAMESPACE_URIS?

https://en.wikipedia.org/wiki/XML_namespace#Namespace_declaration

DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 2, 2017
@vicb vicb added area: core Issues related to the framework runtime type: bug/fix labels Mar 4, 2017
DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 4, 2017
DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 4, 2017
DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 4, 2017
DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 4, 2017
DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 4, 2017
DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 4, 2017
DzmitryShylovich added a commit to DzmitryShylovich/angular that referenced this issue Mar 4, 2017
@elvisbegovic
Copy link
Contributor

elvisbegovic commented Mar 13, 2017

wonder why this isn't fixed in rc3 ? my app doesn't compile

cc @DzmitryShylovich

@DzmitryShylovich
Copy link
Contributor

DzmitryShylovich commented Mar 13, 2017

@istiti idk. I don't merge anything :)

@markgoho
Copy link
Contributor

Still getting this message with inline SVG in rc4

ERROR DOMException: Failed to execute 'setAttributeNS' on 'Element': '' is an invalid namespace for attributes.
    at EmulatedEncapsulationDomRenderer2.DefaultDomRenderer2.setAttribute (http://localhost:4200/vendor.bundle.js:31240:16)
    at DebugRenderer2.setAttribute (http://localhost:4200/vendor.bundle.js:12828:23)
    at createElement (http://localhost:4200/vendor.bundle.js:9106:22)
    at createViewNodes (http://localhost:4200/vendor.bundle.js:11602:44)
    at callViewAction (http://localhost:4200/vendor.bundle.js:12014:13)
    at execComponentViewsAction (http://localhost:4200/vendor.bundle.js:11953:13)
    at createViewNodes (http://localhost:4200/vendor.bundle.js:11671:5)
    at callViewAction (http://localhost:4200/vendor.bundle.js:12014:13)
    at execComponentViewsAction (http://localhost:4200/vendor.bundle.js:11953:13)
    at createViewNodes (http://localhost:4200/vendor.bundle.js:11671:5)
    at createRootView (http://localhost:4200/vendor.bundle.js:11549:5)
    at callWithDebugContext (http://localhost:4200/vendor.bundle.js:12657:42)
    at Object.debugCreateRootView [as createRootView] (http://localhost:4200/vendor.bundle.js:12134:12)
    at ComponentFactory_.create (http://localhost:4200/vendor.bundle.js:9521:46)
    at ComponentFactoryBoundToModule.create (http://localhost:4200/vendor.bundle.js:3420:29)

@DzmitryShylovich
Copy link
Contributor

@markgoho will be fixed in the next release

@markgoho
Copy link
Contributor

markgoho commented Mar 17, 2017 via email

@elvisbegovic
Copy link
Contributor

what mean next release, still not fixed in rc5, :@

@trotyl
Copy link
Contributor

trotyl commented Mar 20, 2017

@istiti rc.5 is not a real release, just the hot-fix of rc.4 because of wrong dependency version, you can check it at ChangeLog.

@elvisbegovic
Copy link
Contributor

@trotyl rc6 is not real release too ?

please can this be fixed, actually can't build, regression !

cc @IgorMinar @vicb

@markgoho
Copy link
Contributor

Confirmed, still not working in rc6

@tbosch tbosch added the regression Indicates than the issue relates to something that worked in a previous version label Mar 23, 2017
@vicb
Copy link
Contributor

vicb commented Mar 23, 2017

Should be fixed by #14874 - probably next release

@markgoho
Copy link
Contributor

Fixed in 4.0.0 final!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: core Issues related to the framework runtime regression Indicates than the issue relates to something that worked in a previous version type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants