02:06 | <Domenic> | Hm, is it actually possible to define an interface that inherits from ObservableArray? |
02:07 | <TabAtkins> | Huh, that's extremely unfortunate. It means it's impossible for us to upgrade older list-like interfaces into OA. |
02:08 | <Domenic> | It's possible someone could do the work to define that, but yeah, the idea was to use ObservableArray for all new things, since nobody has ever had the appetite to upgrade any old things |
02:27 | <TabAtkins> | Well "upgrade the old things" was a requirement for the CSSWG to agree to use OA for the new CSSStyleRule.cssRules attribute, so I guess I'll have to do the work to define that. ^_^ |
02:28 | <TabAtkins> | (Which is extremely fair; it would be terrible API to have some .cssRules properties be the old version and some be the new.) |
02:28 | <TabAtkins> | I've also got that iterator work to finish up on WebIDL, so I'll just spend some time on that spec in general soon. |
02:34 | <Domenic> | I've also got that iterator work to finish up on WebIDL, so I'll just spend some time on that spec in general soon. |
02:34 | <TabAtkins> | I think I have some things to do? I'll see next week |
02:34 | <TabAtkins> | I'll ping if it's your fault |
02:36 | <Domenic> | Well "upgrade the old things" was a requirement for the CSSWG to agree to use OA for the new CSSStyleRule.cssRules attribute, so I guess I'll have to do the work to define that. ^_^ x.constructor.name === "CSSRuleList" , x.hasOwnProperty("push") === false , but x.hasOwnProperty("item") === true ), or something that changes the proxy that ObservableArray uses to have special behavior for the defined properties (i.e., instead of [[GetOwnProperty]] on "item" returning undefined/whatever gets stored there via normal property access, it returns some property descriptor for the method that we conjured up). Both are pretty subtle to actually define and I'm not sure which is best, or if there's a better third option... |
05:58 | <annevk> | zcorpan: that's not it, otherwise the second table wouldn't show up in one of the implementations; it's reset the insertion mode that does the wrong thing in Firefox (I think) |
06:07 | <zcorpan> | annevk: ok |
06:57 | <Ms2ger> | Huh, I wonder what I was doing to stumble upon https://github.com/html5lib/html5lib-tests/issues/137 |
16:22 | <bkardell> | hey so I'm looking into resolving the :dir stuff in the spec / tests etc and I pulled up the current spec and was looking at it and... either it has a couple of errors or (also very plausible) I do not actually understand how to read these.. I'd like to know which is the case before I move forward too far... I think you can see in this screenshot the bit that is highlighted seems like it is impossible? there are a couple of these in the existing text |
16:25 | <bkardell> | (it looks like it is checking if an input or a text area are a document element which seems... strange?) |
18:50 | <bkardell> | I guess the punchline of the above is I'd like to understand if anyone else I should open a bug/pr or can help me understand how I am reading it wrong? |
19:10 | <TabAtkins> | Yeah, that's kinda a weird way to phrase "element doesnt' have a parent", but that's what it's getting at. |
19:11 | <TabAtkins> | Like, it's absolutely an unlikely situation to occur, but it can if you do weird DOM stuff. |
19:11 | <TabAtkins> | Noam Rosenthal: Is https://github.com/w3c/csswg-drafts/issues/1088 something in your wheelhouse still? Or do I need to load up that context and solve it myself? |
19:16 | <bkardell> | Yeah, that's kinda a weird way to phrase "element doesnt' have a parent", but that's what it's getting at. |
19:17 | <TabAtkins> | bkardell: Isn't something a document element by definition if its parent is the document? |
19:17 | <TabAtkins> | (I might be wrong here, I'm not chasing definitions at the moment.) |
19:18 | <bkardell> |
|
19:19 | <bkardell> | so if you said
I think x's document element is null |
19:23 | <TabAtkins> | Right. |
19:23 | <TabAtkins> | Anyway I agree with you, I think it really does mean "doesn't have a parent". |
19:24 | <TabAtkins> | Since otherwise the definition doesn't give an answer to your case. |