Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(11)

Issue 8877: Rough draft of design for a fleshed out DOMita. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
18 years ago by MikeSamuel
Modified:
17 years, 4 months ago
Reviewers:
DavidSarah, MarkM, metaweta
CC:
google-caja-discuss_googlegroups.com
Base URL:
http://google-caja.googlecode.com/svn/trunk/
Visibility:
Public.

Description

The package.html describes the code layout for the fleshed out DOMita. It lists the files and broadly what each will do, talks about how the tamed node types are derived from the definitions in the DOM Level 2 spec, and covers topics such as parentNode and ownerDocument navigation in valija and cajita; and focus handling.

Patch Set 1 #

Patch Set 2 : Rough draft of design for a fleshed out DOMita. #

Patch Set 3 : Rough draft of design for a fleshed out DOMita. #

Total comments: 7

Patch Set 4 : Rough draft of design for a fleshed out DOMita. #

Patch Set 5 : Rough draft of design for a fleshed out DOMita. #

Patch Set 6 : Rough draft of design for a fleshed out DOMita. #

Patch Set 7 : Rough draft of design for a fleshed out DOMita. #

Patch Set 8 : Rough draft of design for a fleshed out DOMita. #

Patch Set 9 : Rough draft of design for a fleshed out DOMita. #

Total comments: 30

Patch Set 10 : Rough draft of design for a fleshed out DOMita. #

Patch Set 11 : Rough draft of design for a fleshed out DOMita. #

Patch Set 12 : Rough draft of design for a fleshed out DOMita. #

Total comments: 26

Patch Set 13 : Rough draft of design for a fleshed out DOMita. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+779 lines, -0 lines) Patch
A src/com/google/caja/domita/package.html View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +779 lines, -0 lines 1 comment Download

Messages

Total messages: 10
metaweta
A couple notes; haven't finished reading yet. http://codereview.appspot.com/8877/diff/1/2 File src/com/google/caja/domita/package.html (right): http://codereview.appspot.com/8877/diff/1/2#newcode152 Line 152: var ...
18 years ago (2008-12-01 20:48:14 UTC) #1
MarkM
http://codereview.appspot.com/8877/diff/1/2 File src/com/google/caja/domita/package.html (right): http://codereview.appspot.com/8877/diff/1/2#newcode14 Line 14: <dd>A node N is a descendant of M ...
17 years, 12 months ago (2008-12-06 20:04:59 UTC) #2
MikeSamuel
http://codereview.appspot.com/8877/diff/601/602 File src/com/google/caja/domita/package.html (right): http://codereview.appspot.com/8877/diff/601/602#newcode20 Line 20: <dd>A node which prevents root-wards navigation by cajoled ...
17 years, 11 months ago (2009-01-04 20:42:53 UTC) #3
DavidSarah
http://codereview.appspot.com/8877/diff/1001/603 File src/com/google/caja/domita/package.html (right): http://codereview.appspot.com/8877/diff/1001/603#newcode27 Line 27: <dd>A node N is not contained in M ...
17 years, 10 months ago (2009-01-14 03:27:19 UTC) #4
MikeSamuel
On 2009/01/14 03:27:19, DavidSarah wrote: > http://codereview.appspot.com/8877/diff/1001/603 > File src/com/google/caja/domita/package.html (right): > > http://codereview.appspot.com/8877/diff/1001/603#newcode27 > ...
17 years, 10 months ago (2009-01-14 04:06:35 UTC) #5
MarkM
Inline comments are all minor. Altogether, I wasn't really able to gather the design from ...
17 years, 10 months ago (2009-01-19 22:00:24 UTC) #6
MikeSamuel
http://codereview.appspot.com/8877/diff/1013/611 File src/com/google/caja/domita/package.html (right): http://codereview.appspot.com/8877/diff/1013/611#newcode68 Line 68: parameter types, and zero or more nominal exception ...
17 years, 10 months ago (2009-01-22 07:41:55 UTC) #7
MarkM
Since none of my comments here are design issues, LGTM. My one real design concern ...
17 years, 10 months ago (2009-02-03 23:38:02 UTC) #8
MikeSamuel
http://codereview.appspot.com/8877/diff/616/1016 File src/com/google/caja/domita/package.html (right): http://codereview.appspot.com/8877/diff/616/1016#newcode47 Line 47: <dd>A mapping from a property names to means ...
17 years, 9 months ago (2009-02-09 01:16:35 UTC) #9
MarkM
17 years, 9 months ago (2009-02-20 01:36:20 UTC) #10
LGTM. I like it.


>http://codereview.appspot.com/8877/diff/616/1016#newcode514
>Line 514: return property.read(node, propertyName);
>On 2009/02/03 23:38:02, MarkM wrote:
>> If we invoke the readHandler as
>>     return property.handleRead.call(node, propertyName);
>> then we can use the same read-fault handler functions we'd 
>> use to handle faults on the node itself.
>
>Changed the calling convention.  I'm not sure I follow 
>though. Would that first fault round be on 
>Object.prototype?

No. My point was only that a faultHandler written for one context (as well as
the learning of how to write such a fault handler) be reusable in the other
context.


>http://codereview.appspot.com/8877/diff/616/1016#newcode564
>Line 564: candidate.nodeType = nodeType;
>On 2009/02/03 23:38:02, MarkM wrote:
>> Weren't you going to restore this in a finally block?
>
>In case candidate.nodeType is a getter that might throw an 
>exception at 562? This code already fails in the presence 
>of getters and setters.

You're right. The only remaining issue is robustness under maintenance, and this
is as easily dealt with by a comment.

http://codereview.appspot.com/8877/diff/3201/2202
File src/com/google/caja/domita/package.html (right):

http://codereview.appspot.com/8877/diff/3201/2202#newcode431
Line 431: <p>Since DOMita does not wrap nodes, we don't need to worry about a
Sorry, but even with your clarification I still don't understand this. Let's
just do this verbally sometime. It need not delay the LGTM.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b