Thread overview
Omitting optional tags
Sep 17, 2016
Jack Stouffer
Sep 17, 2016
ag0aep6g
Sep 19, 2016
Kagamin
September 17, 2016
Cool! We should do this for our own docs: https://google.github.io/styleguide/htmlcssguide.xml?showone=Optional_Tags#Optional_Tags

Andrei
September 17, 2016
On Saturday, 17 September 2016 at 18:17:56 UTC, Andrei Alexandrescu wrote:
> Cool! We should do this for our own docs: https://google.github.io/styleguide/htmlcssguide.xml?showone=Optional_Tags#Optional_Tags
>
> Andrei

I wouldn't recommend it. We have no idea how many screen readers and HTML parsers will be broken by doing this.
September 17, 2016
On 09/17/2016 08:17 PM, Andrei Alexandrescu wrote:
> Cool! We should do this for our own docs:
> https://google.github.io/styleguide/htmlcssguide.xml?showone=Optional_Tags#Optional_Tags

I'd rather go full XML. Post-processing is easier with XML, especially with dogfooding in mind. We're soon going to have a more capable std.xml2, but a std.html is not being pursued, as far as I know.
September 19, 2016
Well, a lot can be done to optimize generated html, e.g. it has a lot of spaces and questionable markup like <a href='object.html'><span><em class="tt">object</em></span></a>