Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information