Fatal Error vs. Warning when stylesheet parsing goes bad

6 views
Skip to first unread message

BrianS

unread,
Jul 19, 2012, 2:33:53 PM7/19/12
to dompd...@googlegroups.com
There are a few parsing errors that will cause dompdf to throw an exception during stylesheet parsing. The exception is fatal, causing further processing to stop. This seems the wrong way to handle stylesheet problems since this affects visual the document's visual representation instead of overall document processing. Browsers typically silently ignore CSS errors. I believe we can take a similar tact, throw a warning and proceed to the next valid declaration. Any thoughts?

Anyone have a stylesheet that contains bad CSS syntax that we can use in testing?

BrianS

unread,
Jul 20, 2012, 2:07:13 PM7/20/12
to dompd...@googlegroups.com
Heh, already an issue for this: http://code.google.com/p/dompdf/issues/detail?id=127
Reply all
Reply to author
Forward
0 new messages