Skip to content

Commit

Permalink
Don’t output MDN annotations in review drafts
Browse files Browse the repository at this point in the history
  • Loading branch information
sideshowbarker committed Oct 21, 2018
1 parent c8c622a commit f056082
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/wattsi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -1345,7 +1345,8 @@ TCrossReferences = record

procedure ProcessNodeExit(const Node: TElement);
begin
InsertMDNAnnotationForElement(Node);
if (CurrentVariant <> vReview) then
InsertMDNAnnotationForElement(Node);
// TODO: Move the styles below to https://resources.whatwg.org/spec.css or
// https://resources.whatwg.org/standard.css and remove the following
// before merging this patch.
Expand Down Expand Up @@ -2405,7 +2406,8 @@ procedure Save(const Document: TDocument; const FileName: AnsiString; const InSp
// Elements with p ancestors are handled here because the annotations need
// to be inserted after the end tag for the p element has been emitted.
// Otherwise the annotation ends up getting inserted within the p element.
InsertMDNAnnotationForElementWithPAncestor(Element);
if (CurrentVariant <> vReview) then
InsertMDNAnnotationForElementWithPAncestor(Element);
end;

var
Expand Down

0 comments on commit f056082

Please sign in to comment.