[Bug 21718] xrefs are broken

https://www.w3.org/Bugs/Public/show_bug.cgi?id=21718

Glenn Adams <glenn@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |glenn@skynav.com

--- Comment #1 from Glenn Adams <glenn@skynav.com> ---
(In reply to comment #0)
> https://dvcs.w3.org/hg/csswg/raw-file/tip/cssom-view/Overview.html#widl-
> Window-scrollTo-void-long-x-long-y
> 
> [[
> When the scrollTo operation is invoked, the user agent must act as if the   
> scroll() method was invoked with the same arguments.
> ]]
> 
> The "scroll()" part is intended to be a link to the definition of scroll().
> However, the build script does two things wrong that causes Anolis to not
> create an xref for it:
> 
> cssom-generate.js
> 
>     var IDL_ID_PREFIX = 'widl';
> 
> should be
> 
>     var IDL_ID_PREFIX = 'dom';
> 
> (to match the old style of IDs that the references use)
> 
> Second, the generated markup for a definition is:
> 
> <dt class="method" id="widl-Window-scroll-void-long-x-long-y">
> <code>scroll</code> (....
> 
> Anolis needs a <dfn> element to make xrefs, so it should be something like:
> 
> <dt class="method">
> <dfn id="dom-Window-scroll"><code>scroll</code></dfn> (...
> 
> I'm not sure how overloads are currently handled, maybe we should include
> the arguments in the ID though I personally prefer having a single
> definition of an overloaded method...

Made some progress on this, but some further work is required.

(1) should use 'widl-' not 'dom-' prefixes in title, refs, etc., when referring
to cssom related idl defined terms; 'dom-' is reserved for DOM-4 related
interfaces;

(2) pre-processor now wraps member term definitions with anolis compatible dfn;

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Friday, 26 April 2013 00:19:10 UTC