speced / respec

A tool for creating technical documents and web standards
https://respec.org/
Other
722 stars 389 forks source link

Regression: normative biblio things end up in informative section #2180

Closed marcoscaceres closed 5 years ago

marcoscaceres commented 5 years ago

Important info

Description of problem

What happened (e.g., it crashed)?: Duplicate bibliographical entries: https://w3c.github.io/payment-request/#references

DOM and dom, weidl and WEBIDL

But what I was expecting?:

For there to be no duplicates.

Optional, steps to reproduce:

  1. See https://w3c.github.io/payment-request/#references
Swapnilr1 commented 5 years ago

@marcoscaceres Changing https://github.com/w3c/respec/blob/f7177978f10ec844b95a5066234df9b01f374744/src/core/xref.js#L245 to

closestInform && !normative && 

fixed the issue when I tested this. This is just a quick hack - I am not sure if this is a valid fix, since I don't exactly know what the module is doing.

marcoscaceres commented 5 years ago

@Swapnilr1 thanks for investigating. I'll have a look, but what you describe above like might be a reasonable fix.