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

Support namespaced attributes with default attr binding #1066

Merged
merged 2 commits into from
Sep 29, 2017

Commits on Aug 7, 2013

  1. Add a spec to support namespaces in attr binding.

    Attribute namespaces can be defined by `xmlns:<i>prefix</i>="namespace-url"`
    attributes, and allow all descendents of that element to define
    `<i>prefix</i>:name="value"` attributes.
    rampion committed Aug 7, 2013
    Configuration menu
    Copy the full SHA
    6d3d744 View commit details
    Browse the repository at this point in the history
  2. Implement support for namespaces in attr binding.

    The DOM provides a way to lookup which namespace an attribute name belongs to
    given the element the attribute will be bound to, Node.lookupNamespaceURI
    (http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-lookupNamespaceURI).
    
    Given the namespace, it's simple to add/remove the desired attribute with the
    correct namespace using the Node.setElementNS and Node.removeAttributeNS.
    rampion committed Aug 7, 2013
    Configuration menu
    Copy the full SHA
    0b575f8 View commit details
    Browse the repository at this point in the history