jacshore / epubcheck

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

Warning about leading semi-colon in style attribute #238

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

When something like the following appears in an entity a warning is issued.

<span style=";font-size=83%;"/>

The warning says "Token ';' not allowed here, expecting a property name"

METHOD:

1. Add <span style=";font-size=83%;"/> in a book entity
2. Run epubcheck 3.0

RESULT:

The warning "Token ';' not allowed here, expecting a property name" is issued.

EXPECTED:

No warning.

PLATFORM:

Version 3.0 on Mac OS X 10.8.2 using Java 1.6.0_37.

ADDITIONAL INFO:

The CSS grammar (appendix D.1 of CSS2) contains the following two productions:

ruleset
  : selector [ ’,’ S* selector ]*
    ’{’ S* declaration [ ’;’ S* declaration ]* ’}’ S*
  ;

declaration
  : property ’:’ S* expr prio?
  | /* empty */
  ;

Since the "declaration" production matches "empty", the list of property 
declarations can start with ";".

Original issue reported on code.google.com by werner.d...@gmail.com on 3 Jan 2013 at 4:00

GoogleCodeExporter commented 8 years ago

Original comment by markus.g...@gmail.com on 26 Mar 2013 at 12:07

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

Original comment by markus.g...@gmail.com on 26 Mar 2013 at 12:08