slachiewicz opened a new pull request, #1129: URL: https://github.com/apache/maven-doxia/pull/1129
`Xhtml5BaseParser`, and with it the XDoc and XHTML5 parsers, sent `tableRows` right after `table`, so an HTML `<caption>` arrived inside the rows, while the `Sink` Javadoc puts the caption before or after them; the validator in #1126 reports it. `tableRows` now waits for the first child of the table that is not a caption, or for a comment or text there, and an empty table still gets the pair. Sinks other than the HTML one now receive `tableCaption` before `tableRows` from these parsers, and the whitespace line breaks between `<table>` and the first row before `tableRows` instead of after it. `Xhtml5BaseSink` writes the same HTML: it already buffered the caption and spliced it in after `<table>`. Verified: the XDoc module's `test.xml` through `Xhtml5BaseSink` → same HTML as on master apart from whitespace. --- To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) check one of the following: - [x] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) - [x] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
