Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use last-token-of-class att rather than local name to check target el…
…ement Added unit test for conref to specialization Signed-off-by: Eliot Kimber <ekimber@contrext.com>
- Loading branch information
Showing
4 changed files
with
54 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/test/resources/conref_to_specialization/exp/xhtml/conref_to_specialization.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE html | ||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | ||
<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> | ||
|
||
<meta name="copyright" content="(C) Copyright 2019" /> | ||
<meta name="DC.rights.owner" content="(C) Copyright 2019" /> | ||
<meta name="DC.type" content="topic" /> | ||
<meta name="DC.title" content="Conref test for #3264" /> | ||
<meta name="DC.format" content="XHTML" /> | ||
<meta name="DC.identifier" content="topic" /> | ||
<meta name="DC.language" content="en" /> | ||
<link rel="stylesheet" type="text/css" href="commonltr.css" /> | ||
<title>Conref test for #3264</title> | ||
</head> | ||
<body id="topic"> | ||
|
||
<h1 class="title topictitle1" id="ariaid-title1">Conref test for #3264</h1> | ||
|
||
<div class="body"> | ||
<p class="p" id="topic__test">apiref element (specialization of keyword): <span class="keyword apiref" id="topic__apiref">APIREF element</span></p> | ||
|
||
<p class="p">Conref from keyword: <span class="keyword">APIREF element</span></p> | ||
|
||
</div> | ||
|
||
</body> | ||
</html> |
8 changes: 8 additions & 0 deletions
8
src/test/resources/conref_to_specialization/src/conref_to_specialization.dita
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<topic class="- topic/topic " domains="(topic hi-d)" id="topic" ditaarch:DITAArchVersion="1.3" xml:lang="en" | ||
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"> | ||
<title class="- topic/title ">Conref test for #3264</title> | ||
<body class="- topic/body "> | ||
<p class="- topic/p " id="test">apiref element (specialization of keyword): <apiref class="+ topic/keyword api-d/apiref " id="apiref">APIREF element</apiref></p> | ||
<p class="- topic/p ">Conref from keyword: <keyword class="- topic/keyword " conref="#./apiref"/></p> | ||
</body> | ||
</topic> |