Lightweight DITA SC

 View Only
  • 1.  Please look at my @compact bug comment before I post it

    Posted 10-30-2023 22:27
    Please look at what I plan to ask the DITA OT devs about this bug on the HTML5 @compact attribute. This is the bug: https://github.com/dita-ot/dita-ot/issues/4298 This will be my comment (below), did I get it right? Thanks, Mark ------------------ Comment: I have a request on this. Today in the Lightweight DITA Subcommittee we decided to add the attribute @data-compact to the HTML5 flavor of Lightweight DITA (aka HDITA), instead of adding a fixed @class value of "compact". Can we get you to use @data-compact or @data-compact="yes" instead of the @class syntax above? You could handle this in HTML and CSS like this: HTML5: <ul class="ul" data-compact> HTML5 XML syntax ("XHTML"): <ul class="ul" data-compact="yes"> CSS: *[data-compact=yes] > li { margin-top: 0; } *[data-compact=no] > li { margin-top: 0.53em; } ------------------


  • 2.  RE: [dita-lightweight-dita] Please look at my @compact bug comment before I post it

    Posted 10-31-2023 08:54
    I'd be a bit more careful about using an empty attribute data-compact. Traditionally, HTML DTDs defined <ul compact> to mean <ul compact="compact">, but the current HTML spec ( https://html.spec.whatwg.org/#attributes-2 ) assumes an empty value instead. However, we want to stick to the @compact values as defined in full DITA, and this means "yes" or "no". We should better not open the field for any other interpretation, and leave out the empty attribute construct. f.


  • 3.  Re: [dita-lightweight-dita] Please look at my @compact bug comment before I post it

    Posted 11-06-2023 06:55
    I took your advice, Frank. Here is my comment on the bug: https://github.com/dita-ot/dita-ot/issues/4298#issuecomment-1794184084 Mark On 10/31/2023 1:53 AM, Wegmann, Frank wrote: I'd be a bit more careful about using an empty attribute data-compact. Traditionally, HTML DTDs defined <ul compact> to mean <ul compact="compact">, but the current HTML spec ( https://html.spec.whatwg.org/#attributes-2 ) assumes an empty value instead. However, we want to stick to the @compact values as defined in full DITA, and this means "yes" or "no". We should better not open the field for any other interpretation, and leave out the empty attribute construct. f.