WebAssembly specs have empty spans like <span id="[id]"></span> at the beginning of a section to create alternate IDs (probably to preserve historical ones?)
For example, the Globals section starts with:
<section id="globals">
<span id="syntax-global"></span>
<span id="index-4③"></span>
<h4 class="heading settled" data-level="2.5.4" id="globals①">
<span class="secno">2.5.4. </span><span class="content">Globals</span><a class="self-link" href="#globals①"></a>
</h4>
BCD may use these IDs to reference the spec. A general question here is whether to add these IDs to the data, or whether it would be preferable to update links that target them to use the main section ID. In the above example, syntax-global seems a "good" ID, while index-4③ doesn't quite look like something that's going to remain stable, or more importantly that will always target the same section in the document.
Via mdn/browser-compat-data#23958
WebAssembly specs have empty spans like
<span id="[id]"></span>at the beginning of a section to create alternate IDs (probably to preserve historical ones?)For example, the Globals section starts with:
BCD may use these IDs to reference the spec. A general question here is whether to add these IDs to the data, or whether it would be preferable to update links that target them to use the main section ID. In the above example,
syntax-globalseems a "good" ID, whileindex-4③doesn't quite look like something that's going to remain stable, or more importantly that will always target the same section in the document.Via mdn/browser-compat-data#23958