Skip to content

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

Closed

Description

@sod

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

Activity

  1. sod commented on Mar 2, 2017

    @sod
    ContributorAuthor

    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

  2. elvisbegovic commented on Mar 13, 2017

    @elvisbegovic
    Contributor

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

    cc @DzmitryShylovich

  3. DzmitryShylovich commented on Mar 13, 2017

    @DzmitryShylovich
    Contributor

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

  4. markgoho commented on Mar 17, 2017

    @markgoho
    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)
    
  5. DzmitryShylovich commented on Mar 17, 2017

    @DzmitryShylovich
    Contributor

    @markgoho will be fixed in the next release

  6. markgoho commented on Mar 17, 2017

    @markgoho
    Contributor
  7. elvisbegovic commented on Mar 20, 2017

    @elvisbegovic
    Contributor

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

  8. trotyl commented on Mar 20, 2017

    @trotyl
    Contributor

    @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.

  9. elvisbegovic commented on Mar 23, 2017

    @elvisbegovic
    Contributor

    @trotyl rc6 is not real release too ?

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

    cc @IgorMinar @vicb

  10. markgoho commented on Mar 23, 2017

    @markgoho
    Contributor

    Confirmed, still not working in rc6

  11. added
    regressionIndicates than the issue relates to something that worked in a previous version
    on Mar 23, 2017
  12. vicb commented on Mar 23, 2017

    @vicb
    Contributor

    Should be fixed by #14874 - probably next release

  13. added a commit that references this issue on Mar 23, 2017
    92084f2
  14. markgoho commented on Mar 24, 2017

    @markgoho
    Contributor

    Fixed in 4.0.0 final!

  15. added a commit that references this issue on Aug 11, 2017
    3adb1ab
  16. added a commit that references this issue on Aug 28, 2017
    d8177e0
  17. angular-automatic-lock-bot commented on Sep 11, 2019

    @angular-automatic-lock-bot

    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.

  18. locked and limited conversation to collaborators on Sep 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: coreIssues related to the framework runtimeregressionIndicates than the issue relates to something that worked in a previous versiontype: bug/fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions