-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lint: Add x-021, <figure> with no @id attribute
- Loading branch information
Showing
4 changed files
with
33 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
x-021 [Error] chapter-1.xhtml `<figure>` element with no `id` attribute. | ||
<figure> | ||
<figcaption> | ||
|
||
<p>Look ma, no picture</p> | ||
</figcaption> | ||
</figure> | ||
y-003 [Manual Review] chapter-1.xhtml Possible typo: paragraph missing ending | ||
punctuation. | ||
<p>This one should error</p> |
Empty file.
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,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" epub:prefix="z3998: http://www.daisy.org/z3998/2012/vocab/structure/, se: https://standardebooks.org/vocab/1.0" xml:lang="en-GB"> | ||
<head> | ||
<title>I</title> | ||
<link href="../css/core.css" rel="stylesheet" type="text/css"/> | ||
<link href="../css/local.css" rel="stylesheet" type="text/css"/> | ||
</head> | ||
<body epub:type="bodymatter z3998:fiction"> | ||
<section id="chapter-1" epub:type="chapter"> | ||
<!-- Match, no @id attribute. --> | ||
<figure> | ||
<img alt="A portrait illustration of a young woman." src="test.png" epub:type="z3998:illustration se:image.color-depth.black-on-transparent se:image.style.realistic"/> | ||
</figure> | ||
<!-- Don't match, has an @id attribute. --> | ||
<figure id="illustration-1"> | ||
<img alt="A portrait illustration of a young woman." src="test.png" epub:type="z3998:illustration se:image.color-depth.black-on-transparent se:image.style.realistic"/> | ||
</figure> | ||
</section> | ||
</body> | ||
</html> |