<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>27050</bug_id>
          
          <creation_ts>2014-10-14 21:42:52 +0000</creation_ts>
          <short_desc>Outline not shown for simple valid document</short_desc>
          <delta_ts>2015-08-23 07:07:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jukka K. Korpela">jukka.k.korpela</reporter>
          <assigned_to name="Michael[tm] Smith">mike+validator</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>113151</commentid>
    <comment_count>0</comment_count>
    <who name="Jukka K. Korpela">jukka.k.korpela</who>
    <bug_when>2014-10-14 21:42:52 +0000</bug_when>
    <thetext>The following simple document, when validating with direct input and “Show Outline” selected, does not show any outline (only the heading “Document Outline” and the text “Below is an outline for this document, automatically generated from the heading tags (&lt;h1&gt; through &lt;h6&gt;.)” appear):

&lt;!doctype html&gt;
&lt;title&gt;foo&lt;/title&gt;
&lt;h1&gt;aaa&lt;/h1&gt;
&lt;h2&gt;bbb&lt;/h2&gt;

http://validator.w3.org/nu/ shows the outline properly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113189</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-10-15 10:22:28 +0000</bug_when>
    <thetext>http://validator.w3.org/ doesn&apos;t support showing document outlines for HTML5 docs. It doesn&apos;t support a lot of things that http://validator.w3.org/nu/ does.

The easy solution is just to use http://validator.w3.org/nu/ directly instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113190</commentid>
    <comment_count>2</comment_count>
    <who name="Jukka K. Korpela">jukka.k.korpela</who>
    <bug_when>2014-10-15 10:31:54 +0000</bug_when>
    <thetext>Since it seems, from the history of similar bug reports through the years, that the validator will not be modified to produce outline for HTML5 documents, this feature should be disabled from its user interface, i.e. when HTML5 validation is being performed, there should be no option for requesting an outline. Or at least there should be statement in the report saying that outline was not generated.

Now everything in the user interface makes the user think that outline works for HTML5 but the outline is empty. This can be very confusing, and people look for explanations in their own documents, not in the validator pages (which probably don’t even mention this restriction).

Perhaps simpler, disable HTML5 mode entirely http://validator.w3.org and point to http://validator.w3.org/nu/ for HTML5 validation. (If the reason for not having done this is that the latter is not ready or finalized yet, the counterargument is that neither is the HTML5 mode of http://validator.w3.org which is explicitly told to be “experimental”.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>113191</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2014-10-15 10:38:09 +0000</bug_when>
    <thetext>(In reply to Jukka K. Korpela from comment #2)
&gt; Since it seems, from the history of similar bug reports through the years,
&gt; that the validator will not be modified to produce outline for HTML5
&gt; documents, this feature should be disabled from its user interface, i.e.
&gt; when HTML5 validation is being performed, there should be no option for
&gt; requesting an outline. Or at least there should be statement in the report
&gt; saying that outline was not generated.

All that would require somebody to actually make changes to the perl code of the legacy validator and the Web UI code for it. Nobody has even touched that code in a very long time. I guess I may have to myself eventually.

&gt; Now everything in the user interface makes the user think that outline works
&gt; for HTML5 but the outline is empty. This can be very confusing, and people
&gt; look for explanations in their own documents, not in the validator pages
&gt; (which probably don’t even mention this restriction).

Yeah, I hear you. We should fix that at least.

&gt; Perhaps simpler, disable HTML5 mode entirely http://validator.w3.org and
&gt; point to http://validator.w3.org/nu/ for HTML5 validation.

I have some ideas about how to do that and I hope to at least get those landed in the production validator within the next couple of months.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121506</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2015-06-28 02:28:03 +0000</bug_when>
    <thetext>I added a warning message to the vnu backend to tell users of the legacy validator to use the current validator instead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>