<?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>13038</bug_id>
          
          <creation_ts>2011-06-24 04:27:14 +0000</creation_ts>
          <short_desc>Still a silly lang attribute, and inconsistencies in the HTML5 Edition  for Web Authors</short_desc>
          <delta_ts>2011-07-01 15:27:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML WG</product>
          <component>HTML5 spec author view</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/mid/4E03F18F.5020907@burningbird.net</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="HTML WG bugbot">mike+html-wg-mailbot</reporter>
          <assigned_to name="Michael[tm] Smith">mike</assigned_to>
          <cc>julian.reschke</cc>
    
    <cc>mike</cc>
    
    <cc>public-html-admin</cc>
    
    <cc>public-html-wg-issue-tracking</cc>
    
    <cc>shelleyp</cc>
          
          <qa_contact name="HTML WG Bugzilla archive list">public-html-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>50208</commentid>
    <comment_count>0</comment_count>
    <who name="HTML WG bugbot">mike+html-wg-mailbot</who>
    <bug_when>2011-06-24 04:27:14 +0000</bug_when>
    <thetext>public-html-comments posting from: Shelley Powers &lt;shelleyp@burningbird.net&gt;
http://www.w3.org/mid/4E03F18F.5020907@burningbird.net

Aside from the fact that the HTML5 Edition for Web Authors document 
still has the silly lang attribute in the HTML source, there are other 
problems with the document, notably an inconsistency of references.

If the purpose of the document is to provide a more web author centric 
view of the HTML5 specification, without burying web authors in the 
minutia of implementation details, the document only partially succeeds.

For instance, we can find a web author centric view of the 
MediaController[1] . However, if you click on any of the methods, 
properties, or events listed in the table describing the MediaController 
interface, you&apos;re taken back to the main HTML5 specification--whereby 
you&apos;re completely drowned in implementation detail.

Yet right underneath the table are web author friendly descriptions of 
both the MediaController interface methods and properties. These are 
what should be what&apos;s linked within the MediaController table. In 
addition, the events also need a more web friendly view, as clicking on 
each of these also returns the person to the full HTML5 spec.

Shelley Powers


[1] 
http://www.w3.org/TR/2011/WD-html5-20110525/author/the-track-element.html#mediacontroller</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50209</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-24 04:38:05 +0000</bug_when>
    <thetext>Shelley, in reply to your comment #0:

&gt; For instance, we can find a web author centric view of the 
&gt; MediaController
&gt; http://www.w3.org/TR/2011/WD-html5-20110525/author/the-track-element.html#mediacontroller
&gt; However, if you click on any of the methods, 
&gt; properties, or events listed in the table describing the MediaController 
&gt; interface, you&apos;re taken back to the main HTML5 specification--whereby 
&gt; you&apos;re completely drowned in implementation detail.
&gt; 
&gt; Yet right underneath the table are web author friendly descriptions of 
&gt; both the MediaController interface methods and properties. These are 
&gt; what should be what&apos;s linked within the MediaController table.

Fully agreed, and I think I can actually tweak the build I made that generates the author view such that those links targets are rewritten to point to the author-friendly parts you mentioned. I&apos;ll make time to mess around with it this weekend or at the beginning of next week. It&apos;d definitely be a big usability win for the author view.

&gt; In addition, the events also need a more web friendly view, as clicking on 
&gt; each of these also returns the person to the full HTML5 spec.

Same thing there -- I have not examined the source markup for those yet, but I expect I can probably fiddle with the build to get the link targets rewritten.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50241</commentid>
    <comment_count>2</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2011-06-24 13:58:44 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Shelley, in reply to your comment #0:
&gt; 
&gt; &gt; For instance, we can find a web author centric view of the 
&gt; &gt; MediaController
&gt; &gt; http://www.w3.org/TR/2011/WD-html5-20110525/author/the-track-element.html#mediacontroller
&gt; &gt; However, if you click on any of the methods, 
&gt; &gt; properties, or events listed in the table describing the MediaController 
&gt; &gt; interface, you&apos;re taken back to the main HTML5 specification--whereby 
&gt; &gt; you&apos;re completely drowned in implementation detail.
&gt; &gt; 
&gt; &gt; Yet right underneath the table are web author friendly descriptions of 
&gt; &gt; both the MediaController interface methods and properties. These are 
&gt; &gt; what should be what&apos;s linked within the MediaController table.
&gt; 
&gt; Fully agreed, and I think I can actually tweak the build I made that generates
&gt; the author view such that those links targets are rewritten to point to the
&gt; author-friendly parts you mentioned. I&apos;ll make time to mess around with it this
&gt; weekend or at the beginning of next week. It&apos;d definitely be a big usability
&gt; win for the author view.
&gt; 
&gt; &gt; In addition, the events also need a more web friendly view, as clicking on 
&gt; &gt; each of these also returns the person to the full HTML5 spec.
&gt; 
&gt; Same thing there -- I have not examined the source markup for those yet, but I
&gt; expect I can probably fiddle with the build to get the link targets rewritten.


Thank you for your efforts on this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50397</commentid>
    <comment_count>3</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-28 09:52:10 +0000</bug_when>
    <thetext>OK, I took a shot at fixing the links for the DOM attributes such that they should now be pointing at the &apos;domintro&apos; (author-friendly) stuff instead of going back to the full spec. For example:

  http://dev.w3.org/html5/spec-author-view/the-track-element.html#mediacontroller

Please take a look and let me know if you see any problems.

i&apos;ve not fixed the corresponding links for the event-handlers attributes, but I&apos;m working on that now.

BTW, once I get this done, these fixes will of course go into the version we publish as a FPWD.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50399</commentid>
    <comment_count>4</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-28 10:34:22 +0000</bug_when>
    <thetext>...and now the changes I was trying in order to deal with the event handlers seem to have regressed the earlier changes I made for the DOM attributes. So please bear with me. I&apos;ll post another comment when I have it stabilized.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50434</commentid>
    <comment_count>5</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2011-06-28 22:58:23 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; ...and now the changes I was trying in order to deal with the event handlers
&gt; seem to have regressed the earlier changes I made for the DOM attributes. So
&gt; please bear with me. I&apos;ll post another comment when I have it stabilized.

Thanks again for your effort to fix the document generation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50437</commentid>
    <comment_count>6</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-29 04:49:41 +0000</bug_when>
    <thetext>OK, after taking a break and then going back and battling a little further with the Frankenstein monster of a build process I hacked together to generate this doc, I think I finally have the output working as expected.

So, please do take a look again now:

  http://dev.w3.org/html5/spec-author-view/the-track-element.html#mediacontroller

I did some limited smoke-testing and found a couple of links that aren&apos;t getting rewritten as expected, but I&apos;ll try to get those figured out and fixed too. But I&apos;m sure there are still some others, so if you find any, please post a comment here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50439</commentid>
    <comment_count>7</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-29 05:54:23 +0000</bug_when>
    <thetext>argh. Regressed it again while trying for fix the exceptions. (re)Fixing now</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50446</commentid>
    <comment_count>8</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-06-29 07:14:50 +0000</bug_when>
    <thetext>OK, as far as the links I found that weren&apos;t getting rewritten as expected, I figured out the reason and I&apos;ve fixed it... sorta

What I mean by &quot;sorta&quot; is, if you go here:

  http://dev.w3.org/html5/spec-author-view/the-track-element.html#texttrack_2

...and then you click on the link for the &quot;textTracks&quot; attribute there (href=#dom-media-texttracks), it actually takes you to the description of &quot;media.textTracks.length&quot; attribute -- not to the description of the &quot;media.textTracks&quot; object itself.

But, the description for the &quot;media.textTracks&quot; object is right there in the same &quot;domintro&quot; box, just below the &quot;media.textTracks.length&quot; description.

There aren&apos;t many cases like this -- only about 20 or so in the whole spec (I know because I had to write some special-casing to handle them) -- and I think for all of them the &quot;real&quot; intended description is going to be in close enough proximity that you won&apos;t likely notice it&apos;s not taking you to the exact anchor for the description you need.

So while that&apos;s certainly suboptimal, I hope it&apos;s judged close enough to be acceptable.

The thing is, due to funkiness of the hack I&apos;m using to rewrite the link targets, it would be a lot of extra special casing to get those links to rewritten to the exact targets (and probably some further regressing while I&apos;m monkeying around with it...). Which is not to say it&apos;s not doable, but just not sure it&apos;s worth it unless there are some links that are ending up going somewhere way off from where they should be.

Anyway, all that said, you will still find attributes in some IDLs that will take you to targets in the full spec (instead of to ones in the author view). For example, if you go here:

  http://dev.w3.org/html5/spec-author-view/the-track-element.html#htmlmediaelement

...and scroll down and check the links for some of the attributes -- e.g., &quot;autoplay&quot; and &quot;loop&quot; -- you&apos;ll see that they point back to the full spec.

As far as I can tell the reason for all those remaining cases is just that there are not (yet) any &quot;domintro&quot; (author-friendly) descriptions of those attributes in the spec. So I think the fix is just for &quot;domintro&quot; descriptions for those to actually be added.

I think I can actually generate a list of all the attributes for which that&apos;s the case. So I think I&apos;ll do that and file a separate bug report for it.

In the mean time, I think I&apos;ll take another break from pulling threads on this so that I don&apos;t re-regress anything. So please do check it again now and if you find anything that it seems like I missed, post some more comments.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50450</commentid>
    <comment_count>9</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2011-06-29 12:50:20 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; OK, as far as the links I found that weren&apos;t getting rewritten as expected, I
&gt; figured out the reason and I&apos;ve fixed it... sorta
&gt; 
&gt; What I mean by &quot;sorta&quot; is, if you go here:
&gt; 
&gt;   http://dev.w3.org/html5/spec-author-view/the-track-element.html#texttrack_2
&gt; 
&gt; ...and then you click on the link for the &quot;textTracks&quot; attribute there
&gt; (href=#dom-media-texttracks), it actually takes you to the description of
&gt; &quot;media.textTracks.length&quot; attribute -- not to the description of the
&gt; &quot;media.textTracks&quot; object itself.
&gt; 
&gt; But, the description for the &quot;media.textTracks&quot; object is right there in the
&gt; same &quot;domintro&quot; box, just below the &quot;media.textTracks.length&quot; description.
&gt; 
&gt; There aren&apos;t many cases like this -- only about 20 or so in the whole spec (I
&gt; know because I had to write some special-casing to handle them) -- and I think
&gt; for all of them the &quot;real&quot; intended description is going to be in close enough
&gt; proximity that you won&apos;t likely notice it&apos;s not taking you to the exact anchor
&gt; for the description you need.
&gt; 
&gt; So while that&apos;s certainly suboptimal, I hope it&apos;s judged close enough to be
&gt; acceptable.
&gt; 
&gt; The thing is, due to funkiness of the hack I&apos;m using to rewrite the link
&gt; targets, it would be a lot of extra special casing to get those links to
&gt; rewritten to the exact targets (and probably some further regressing while I&apos;m
&gt; monkeying around with it...). Which is not to say it&apos;s not doable, but just not
&gt; sure it&apos;s worth it unless there are some links that are ending up going
&gt; somewhere way off from where they should be.
&gt; 
&gt; Anyway, all that said, you will still find attributes in some IDLs that will
&gt; take you to targets in the full spec (instead of to ones in the author view).
&gt; For example, if you go here:
&gt; 
&gt;  
&gt; http://dev.w3.org/html5/spec-author-view/the-track-element.html#htmlmediaelement
&gt; 
&gt; ...and scroll down and check the links for some of the attributes -- e.g.,
&gt; &quot;autoplay&quot; and &quot;loop&quot; -- you&apos;ll see that they point back to the full spec.
&gt; 
&gt; As far as I can tell the reason for all those remaining cases is just that
&gt; there are not (yet) any &quot;domintro&quot; (author-friendly) descriptions of those
&gt; attributes in the spec. So I think the fix is just for &quot;domintro&quot; descriptions
&gt; for those to actually be added.
&gt; 
&gt; I think I can actually generate a list of all the attributes for which that&apos;s
&gt; the case. So I think I&apos;ll do that and file a separate bug report for it.
&gt; 
&gt; In the mean time, I think I&apos;ll take another break from pulling threads on this
&gt; so that I don&apos;t re-regress anything. So please do check it again now and if you
&gt; find anything that it seems like I missed, post some more comments.

Looks good! 

I appreciate the work. And thanks for the additional work finding the remaining attributes without the &quot;author friendly&quot; view.

This generated document is going to be much more approachable to the web page designers and developers who just don&apos;t need the implementation material. 

Thanks again for your effort. Should we mark this as resolved, and close it since you&apos;ll handle those without author friendly description in a separate bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50558</commentid>
    <comment_count>10</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-07-01 14:38:12 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; Thanks again for your effort. Should we mark this as resolved, and close it
&gt; since you&apos;ll handle those without author friendly description in a separate
&gt; bug?

Yep -- moving to resolved-fixed now.

Thanks again for having raised this. It&apos;s something that had bothered me previously about the author view as a well, but I&apos;d never worked up enough motivation to actually get around to fixing it, so it helped to get confirmation that it&apos;s important, and some nudging to put some effort into getting it done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50559</commentid>
    <comment_count>11</comment_count>
    <who name="Shelley Powers">shelleyp</who>
    <bug_when>2011-07-01 15:27:40 +0000</bug_when>
    <thetext>Thanks for doing the fix. And filing the bugs on the remaining areas of the spec that don&apos;t have an author friendly description.

Now if I remember correctly, I&apos;ve verified the fix so I move this to closed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>