mxp1988 / epubcheck

Automatically exported from code.google.com/p/epubcheck
MIT License
0 stars 0 forks source link

Epubcheck incorrectly handles attributes after first data- attribute in xhtml. #189

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

Epubchek skip the rest of verification and assume the file is OK then it 
encounters attribute standing after any "data-" attribute in any hxtml tag.

METHOD:
1. Create xhtml like that:

BOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru"
    xmlns:epub="http://www.idpf.org/2007/ops"
xmlns:ev="http://www.w3.org/2001/xml-events"
    xmlns:svg="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink">
<head>
    <title>BUGGY EPUB</title>
</head>
<body>
<div data-name="aa" class="alignTop">
<somebadxhtmlformatting /?!></span>
</div>
EOF

2. Run ebupcheck agains epub containing that file.

RESULT:
epubcheck3b5 repots no errors.

EXPECTED:

epubcheck must detect errors even after e. g. <div data-name="a" class="b">

PLATFORM:

ebpucheck3b5
MacOSX 10.7.4

java -version
java version "1.6.0_33"
Java(TM) SE Runtime Environment (build 1.6.0_33-b03-424-11M3720)
Java HotSpot(TM) 64-Bit Server VM (build 20.8-b03-424, mixed mode)

Original issue reported on code.google.com by alex.al...@gmail.com on 22 Jun 2012 at 10:28

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 1 Oct 2012 at 7:45

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 10 Oct 2012 at 5:18

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r342.

Original comment by markus.g...@gmail.com on 10 Oct 2012 at 5:21