Page 1 of 1

input tags idetified as BlockBox instead of InlineBox

PostPosted: Thu Mar 20, 2014 9:25 pm
by willi.firulais
Hallo,

Currently the tags button, input, label, select, textarea are identified as BlockBox.CONTENT_BLOCK elements.
Accoring to HTML default they should be BlockBox.CONTENT_INLINE elements.

Use Case: I've tried to extend the importer for <INPUT> field elements and ended up that the importer sets a w:p around this elements.

The identification of the
Code: Select all
blockBox.getChildrenContentType()

is correct as
BlockBox.CONTENT_INLINE element, but the
Code: Select all
o instanceof BlockBox

idetifies the <INPUT> tag as BlockBox instead of InlineBox.

Thx, Willi

Re: input tags idetified as BlockBox instead of InlineBox

PostPosted: Thu Mar 20, 2014 10:54 pm
by jason
https://github.com/plutext/docx4j-Impor ... andler.css is consistent with what you say.

It ought to be in the jar ... in which case the problem is elsewhere...