File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -554,7 +554,7 @@ export async function run(conf) {
554554 showError ( msg , name ) ;
555555 }
556556
557- if ( conf . isCR && ! conf . crEnd ) {
557+ if ( conf . isCR && ! conf . isCRDraft && ! conf . crEnd ) {
558558 const msg = docLink `${ "[specStatus]" } is "CR", but no ${ "[crEnd]" } is specified in the ${ "[respecConfig]" } .` ;
559559 showError ( msg , name ) ;
560560 }
Original file line number Diff line number Diff line change @@ -194,6 +194,17 @@ describe("W3C — Headers", () => {
194194 expect ( result2 ) . toBeTruthy ( ) ;
195195 } ) ;
196196
197+ it ( "does not require crEnd for CRD" , async ( ) => {
198+ const ops = makeStandardOps ( {
199+ specStatus : "CRD" ,
200+ group : "webapps" ,
201+ } ) ;
202+ const doc = await makeRSDoc ( ops ) ;
203+ const errors = headerErrors ( doc ) ;
204+ const crEndError = errors . find ( e => e . message . includes ( "crEnd" ) ) ;
205+ expect ( crEndError ) . toBeUndefined ( ) ;
206+ } ) ;
207+
197208 describe ( "specStatus - base" , ( ) => {
198209 it ( "doesn't add 'w3c' to header when status is base" , async ( ) => {
199210 const ops = makeStandardOps ( {
You can’t perform that action at this time.
0 commit comments