Description:
I was a bit dense, and didn't understand the RFC properly in one particular section;
For details, please see #7
Changes:
Change .get() and .rel() to return Arrays, as there can be several link-values with the same "rel" attribute
Change .set() and .parse() to not ignore same "rel" refs
Add Link.setAttr( link, attr, value ) to handle setting attributes on link ref objects while respecting their cardinality (only one uri ref, only one "rel" attribute, everything else possibly multiple)
Link ref objects (link.refs[i]) now can have arrays under their attribute keys, as multiple attributes with the same name can result in that
Description: I was a bit dense, and didn't understand the RFC properly in one particular section; For details, please see #7
Changes:
.get()
and.rel()
to return Arrays, as there can be several link-values with the same "rel" attribute.set()
and.parse()
to not ignore same "rel" refsLink.setAttr( link, attr, value )
to handle setting attributes on link ref objects while respecting their cardinality (only one uri ref, only one "rel" attribute, everything else possibly multiple)link.refs[i]
) now can have arrays under their attribute keys, as multiple attributes with the same name can result in that