Re: [whatwg] Notifications: reviving Notification objects

2013-07-20 Thread Anne van Kesteren
On Tue, Jul 9, 2013 at 8:32 AM, Anne van Kesteren ann...@annevk.nl wrote:
 A requires being able to get the notifications associated with a
 certain site. That can also be useful in case multiple windows are
 open of the same site and can help workers and pages coordinate once
 we enable notifications in workers.

 The idea to address A is:

   Notification.get({tag})

 which returns a Promise which is fulfilled with an array of
 Notification objects for which tag is tag or all Notification objects
 if no tag is defined. The objects are origin-scoped. The reason a
 promise is used is because getting notifications may be a
 cross-process operation.

I've added this. The idea for notifying other globals that you created
a notification is to let developers communicate that themselves via
this proposed API:
https://www.w3.org/Bugs/Public/show_bug.cgi?id=22628


--
http://annevankesteren.nl/


[whatwg] HTML tree construction, inserting a foreign element, and foster parenting

2013-07-20 Thread Nolan Waite
Hello! I've a question about the HTML spec. Suppose I'm parsing the following 
markup:

tablemath

My question is: when I insert an element for the start tag token named math, 
is it affected by the foster parenting logic?

To explain further, I get confused during tree construction when I reach the 
start tag token named math.

I'm told in 
http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#parsing-main-inbody
 to insert a foreign element for the token. However, at 
http://www.whatwg.org/specs/web-apps/current-work/multipage/tree-construction.html#insert-a-foreign-element
 it's pointed out that the insert a foreign element algorithm isn't affected 
by the foster parenting logic. It continues, apparently by way of explanation, 
that the current node, when the insert a foreign element algorithm is invoked, 
is always itself a non-HTML element.

Except that, in this case, the current node is the HTML table element. So 
this note confuses me, even though I realize it's probably non-normative.

Which partial tree is correct here? Is it

body
table
math

or is it

body
math
table

(I asked this question on IRC, but I'm not really an IRC person and thought 
this a better venue.)