speced / bikeshed

:bike: A preprocessor for anyone writing specifications that converts source files into actual specs.
https://speced.github.io/bikeshed
Creative Commons Zero v1.0 Universal
1.08k stars 199 forks source link

IDL/dfn of terms with underscores not autolinking as expected #1489

Open inexorabletash opened 5 years ago

inexorabletash commented 5 years ago

When needing to use underscores to escape IDL keywords, the docs seemingly indicate this should work:

<xmp class=idl>
interface Foo {
  void _bar(any x);
};
</xmp>

The <dfn method for=Foo>bar(|x|)</dfn> method...

... but I'm seeing the IDL fragment define a #dom-foo-_bar id rather than autolinking to the #dom-idbkeyrange-includes id defined by the prose.

inexorabletash commented 5 years ago

I was able to work around with:

The <dfn method for=Foo lt="_bar(x)|bar(x)">bar(|x|)</dfn> method...