W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2014

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

From: Aryeh Gregor <ayg@aryeh.name>
Date: Wed, 2 Apr 2014 17:53:25 +0300
Message-ID: <CAKA+AxmJLkVnMRrxmzD2ppzAF-Q8EYCGq+G+CcKgF5FTTYrRbw@mail.gmail.com>
To: Marta Pawlowska <m.pawlowska@samsung.com>
Cc: W3C WebApps WG <public-webapps@w3.org>
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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:23 UTC