Skip to content

xlink:href fails to be properly defined as an attribute #3223

@karlcow

Description

@karlcow

The SVG2 spec defines xlink:href with:

<dfn 
  id="linking-XLinkHrefAttribute" 
  data-dfn-type="element-attr" 
  data-dfn-for="a, image, linearGradient, pattern, radialGradient, script, textPath, use" 
  data-export="">xlink:href</dfn>

If I rewrite the dfn as:

<dfn attribute for="a, image, linearGradient, pattern, radialGradient, script, textPath, use">xlink:href</dfn>

bikeshed fails with:

LINE ~269:9 of file 'linking.md' (included by a block on 92:1): Couldn't find target xlink:href 'attribute':
<span data-attribute-info="" for="a, image, linearGradient, pattern, radialGradient, script, textPath, use/xlink:href"></span>

I identified that this is the

data-dfn-type="element-attr" attribute which makes it fail.

Note also in the error message how use and xlink:href are mangled: textPath, use/xlink:href"></span>

% bikeshed --version
7.0.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions