- From: Anne van Kesteren <notifications@github.com>
- Date: Tue, 21 Jun 2016 05:38:23 -0700
- To: whatwg/dom <dom@noreply.github.com>
- Cc:
Received on Tuesday, 21 June 2016 12:39:03 UTC
```webidl
interface DOMTreeConstruction {
unsigned long openElement(DOMString name, NamespacePrefix = "html");
void closeElement();
void setAttribute(DOMString name, optional DOMString value = "", optional NamespacePrefix = "");
unsigned long appendText(DOMString text);
unsigned long appendComment(DOMString text);
Bounds appendHTML(DOMString html);
};
enum NamespacePrefix { "", "html", ... };
```
(Maybe `unsigned long long`?)
Spoofing does not matter. That would simply result in an error when the "C++ side" uses the instruction set to create a tree. And since we cannot support rollback and proper transactions anyway due to `<iframe>`, that doesn't seem like a problem. Or at least not one we can solve.
I'm not entirely sure what you're saying. The cost to create a promise or a node is equal to creating a number?
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/dom/issues/270#issuecomment-227426663
Received on Tuesday, 21 June 2016 12:39:03 UTC