Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix invalid content generated by filtered elements #2701 #2712
As reported in #2701, if a conref fails to resolve, in some cases the empty element will be retained. PDF code has a special rule for unresolved conref that does not account for context; this rule with
At a more general level, this is caused by code that expects required elements to be present. When they are missing (due to unresolved conref, or due to filtering, or due to bad input), bad XSL-FO is generated that generally kills FOP. The same markup will generate bad XHTML / HTML5; while browsers typically handle this, we should not generate invalid output. Additionally, simpletable processing currently fails in XHTML / HTML5 when it encounters a table with no entries.
This pull request will: