Make <edit:with> disambiguate bare names to an attribute on the element.
--- a/publish/definitions.js Tue Apr 01 11:14:13 2014 +1100
+++ b/publish/definitions.js Thu Apr 10 18:15:56 2014 +1000
@@ -273,6 +273,14 @@
var attribute = elementName && this.elements[elementName].attributes[name] || this.commonAttributes[name];
var property = this.properties[name];
+ if (elementName && attribute) {
+ // Inside an <edit:with>, assume that <a>'name'</a> links refer to an
+ // attribute on the element given on the <edit:with>. Outside an
+ // <edit:with>, the name must be unambiguous.
+ element = null;
+ property = null;
+ }
+
if (!attribute && !property) {
var attrs = findAttributesInCategories(this, name)
.concat(findCommonAttributesForElements(this, name));