Talk:XULTemplatesAPI

From MozillaWiki
Jump to: navigation, search

on nsIXULTemplateResult

as a Tree

Why doesn't a container Result provide direct access to the results it contains? Isn't Result effectively a tree?

all value support

Why no wildcard method ala "getAllPredicateNames", something to provide access to every resource predicate of a resource. To support this, add getValueFor(predicateName).

label support

Bonus: for any predicate, support the concept of a "label" that a Query Processor can insert. This would serve as a displayable prefix for any value. For example, "Wife" for the value of the predicate "http:../wife". Method? "getLabel"? Better yet, for any predicate allow any number of extra, dresser values. These could be passed in by the query processor and ignored or observed by the builder as appropriate. New method: "getLabels".