whatwg/webidl

Turn 1-line prose algorithms into step-based algorithms for readability.

开放

#203 创建于 2016年10月23日

 (1 条评论) (0 个反应) (0 位负责人)HTML (204 个派生)github user discovery
good first issue⌛⌛⌛ duration:long

仓库指标

星标
 (493 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

This is especially an issue with the IDL to ES conversion algorithms.

For example, turn:

When the \[[DefineOwnProperty]] internal method of a [=named properties object=] is called,
it must return <emu-val>false</emu-val>.

into:

<div algorithm="to invoke the internal [[DefineOwnProperty]] method of named properties object">

    When the \[[DefineOwnProperty]] internal method of a [=named properties object=] is called,
    the following steps are taken:

    1.  Return <emu-val>false</emu-val>.
</div>

For context, see discussion in https://github.com/heycam/webidl/pull/198#issuecomment-255540339 and following comments.

贡献者指南