ngeorga / flying-saucer

Automatically exported from code.google.com/p/flying-saucer
0 stars 0 forks source link

Publish a way to distinguish between author style and presentational html styles #56

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
*** This issue was imported from http://java.net/jira/browse/XHTMLRENDERER-300

It was reported by bago on 18.12.2009 20:12:58 +0100 and last updated in the 
previous bug tracker on 18.12.2009 20:15:58 +0100

Found in
Operating System: All
Platform: All

The priority for this issue at migration was Major.
The original issue had attachments to it; see comments below.

Original description: 
Now both are set with origin = AUTHOR, so there is no way to retrieve the 
cascaded style and know what are the styles from the css and what are the 
styles 
from the attributes.

I don't know if there is a different way to do this, but I've found that 
introducing a new origin "AUTHOR_PRESENTATIONAL" and using that origin in the 
getNonCssStyle allow me to distinguish the style while keeping the rest of the 
behaviour as PropertyDeclaration.getImportanceAndOrigin will retain the same 
result (there is no check for "AUTHOR", but only the "else").

Original issue reported on code.google.com by pdoubl...@gmail.com on 16 Feb 2011 at 9:47

GoogleCodeExporter commented 8 years ago
Attachment by bago on 18.12.2009 20:15:58 +0100:  fs-patch300.diff, size 1622 
bytes
Download: http://java.net/jira/secure/attachment/27411/fs-patch300.diff

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:47

GoogleCodeExporter commented 8 years ago
bago wrote on 18.12.2009 20:15:58 +0100:
Created an attachment (id=103)
My attempt at providing this feature

Original comment by pdoubl...@gmail.com on 16 Feb 2011 at 9:47