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

On Thu, Mar 20, 2014 at 6:38 PM, Marta Pawlowska
<> wrote:
> Specification details that lead me to my conclusions:
> -> step 2. If "p" is not an allowed child of the editing host of node, abort
> these steps.
>   -->
> <-- 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:
>     --->

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