Re: [editing] insertHorizontalRule into <p> while its ancestor is non-editable

On Thu, Mar 20, 2014 at 6:38 PM, Marta Pawlowska
<m.pawlowska@samsung.com> wrote:
> Specification details that lead me to my conclusions:
>
> https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#the-inserthorizontalrule-command
>
> -> step 2. If "p" is not an allowed child of the editing host of node, abort
> these steps.
>
>   -->
> https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#fix-disallowed-ancestors
> <-- p is not allowed child of p
>
> -> step 4: While node is not an allowed child of its parent, split the
> parent of the one-node list consisting of node.
>
>   --> split the parent:
>
>     --->
> https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#split-the-parent

Wow, you're one of the few people ever to actually try to understand
the spec algorithms in detail.  Kudos.  In step 2, "abort these steps"
means "abort the whole algorithm," like a return statement in a
function.  So the algorithm fails at that point, and no further steps
are executed.  It doesn't just leave the "if" statement.  I think that
addresses your concern, correct?

At one point I considered defining and hyperlinking terms like "abort
these steps" in case they were unclear, but I never got around to it.

Thanks for the feedback!

Received on Wednesday, 2 April 2014 14:54:15 UTC