W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2010

[Bug 10063] Foster Parenting Paragraph is confusing

From: <bugzilla@jessica.w3.org>
Date: Wed, 14 Jul 2010 19:02:30 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1OZ7Dy-00026f-0a@jessica.w3.org>

Ian 'Hixie' Hickson <ian@hixie.ch> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |ian@hixie.ch
         Resolution|                            |FIXED

--- Comment #5 from Ian 'Hixie' Hickson <ian@hixie.ch>  2010-07-14 19:02:29 ---
(In reply to comment #0)
> When is it ever possible for the last table element to have a parent who is
> not an element?

   var t = document.getElementsByTagName('table');
   var f = document.createDocumentFragment();

(In reply to comment #1)
> Also, the sentence before:

(I assume you mean after.)

> "If there is no table element in the stack of open
> elements (fragment case), then the foster parent element is the first element
> in the stack of open elements (the html element)"
> I don't see why that's the fragment case has an "html" element, but maybe I've
> not read enough of the fragment case parts of the spec yet.

I'm not sure I follow what you're saying, but yes, in the fragment case (e.g.
setting innerHTML on a <table>) the stack of open elements will just have a
single <html> element at the top, and no <table>. Not sure how to clarify this
further; it's assumed throughout the parser that that is a given, so clarifying
it just here would be a bit weird.

(In reply to comment #2)
> Furthermore, this part of that paragraph is ambiguous:
> If the foster parent element is the parent element of the last table element in
> the stack of open elements, then node must be inserted immediately before the
> last table element in the stack of open elements in the foster parent
> element...
> Two readings:
> 1. node must be inserted immediately before
> the-last-table-element-in-the-stack-of-open-elements.
> and
> 2. node must be inserted in the stack of open elements, immediately before
> the-last-table-element.
> I'm assuming you meant reading #1.

Yeah. Fixed.

EDITOR'S RESPONSE: This is an Editor's Response to your comment. If you are
satisfied with this response, please change the state of this bug to CLOSED. If
you have additional information and would like the editor to reconsider, please
reopen this bug. If you would like to escalate the issue to the full HTML
Working Group, please add the TrackerRequest keyword to this bug, and suggest
title and text for the tracker issue; or you may create a tracker issue
yourself, if you are able to do so. For more details, see this document:

Status: Accepted
Change Description: see diff given below, which hopefully clarifies most of the
points raised herein.
Rationale: Concurred with reporter's comments.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Wednesday, 14 July 2010 19:02:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 16:30:52 UTC