mirror of
https://github.com/servo/servo.git
synced 2025-09-27 15:20:09 +01:00
Additionally, several methods were updated with spec comments. That's because the "adopt the document from the element document" step was missing. By adding these spec comments, I also restructured some code to avoid duplication of mutation records and custom element reaction queueing. Node.textContent doesn't propagate the error yet, as that method has a lot of separate callers of elements that wouldn't fail. I will refactor those in a follow-up PR to keep things manageable. This implements part of the DOM integration from https://github.com/whatwg/dom/pull/1268 Part of #36258 --------- Signed-off-by: Tim van der Lippe <tvanderlippe@gmail.com> Signed-off-by: Tim van der Lippe <TimvdLippe@users.noreply.github.com>
28 lines
773 B
Text
28 lines
773 B
Text
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
|
/*
|
|
* The origin of this IDL file is
|
|
* https://dom.spec.whatwg.org/#interface-attr
|
|
*
|
|
*/
|
|
|
|
[Exposed=Window]
|
|
interface Attr : Node {
|
|
[Constant]
|
|
readonly attribute DOMString? namespaceURI;
|
|
[Constant]
|
|
readonly attribute DOMString? prefix;
|
|
[Constant]
|
|
readonly attribute DOMString localName;
|
|
[Constant]
|
|
readonly attribute DOMString name;
|
|
[CEReactions, Pure, SetterThrows]
|
|
attribute DOMString value;
|
|
|
|
[Pure]
|
|
readonly attribute Element? ownerElement;
|
|
|
|
[Constant]
|
|
readonly attribute boolean specified; // useless; always returns true
|
|
};
|