ecmarkup icon indicating copy to clipboard operation
ecmarkup copied to clipboard

skip `del` elements when matching productions

Open bakkot opened this issue 2 years ago • 0 comments

https://github.com/tc39/ecmarkup/pull/449 makes the logic for matching productions at least work in the presence of <ins> and <del>, but really you don't want to include <del>'d things in the matching logic. For example, if you define Foo : Bar, then Foo : Bar <del>Baz</del> should match that. Conversely, if you define Foo: Bar Baz, then Foo : Bar <del>Baz</del> should not match that.

The matching logic should skip anything within a <del> tag.

bakkot avatar May 19 '22 00:05 bakkot