Skip to content

Commit

Permalink
Report lack of <dfn> for <span>s without attributes
Browse files Browse the repository at this point in the history
Only do this when the <span> has no attributes as using the
lang/class/id attributes should continue to be okay.

Fixes #33.
  • Loading branch information
annevk committed Nov 25, 2016
1 parent 6603383 commit 07f31c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wattsi.pas
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ TCrossReferences = record
CrossRefListNode^.Topic := CrossReferenceName;
CrossRefListNode^.LastHeading := LastSeenHeadingID;
CrossRefListNode^.Element := Element;
if (Element.HasAttribute(kCrossRefAttribute) or Element.IsIdentity(nsHTML, eCode)) then
if (Element.HasAttribute(kCrossRefAttribute) or Element.IsIdentity(nsHTML, eCode) or (Element.IsIdentity(nsHTML, eSpan) and not Assigned(Element.Attributes))) then
CrossRefListNode^.Kind := crExplicit
else
CrossRefListNode^.Kind := crImplicit;
Expand Down

0 comments on commit 07f31c1

Please sign in to comment.