mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
Initial support for Attr and namespaces.
This commit is contained in:
parent
433f19f5a3
commit
15b9d4d199
11 changed files with 333 additions and 63 deletions
18
src/components/script/dom/bindings/codegen/Attr.webidl
Normal file
18
src/components/script/dom/bindings/codegen/Attr.webidl
Normal file
|
@ -0,0 +1,18 @@
|
|||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* 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 http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dom.spec.whatwg.org/#interface-attr
|
||||
*
|
||||
*/
|
||||
|
||||
interface Attr {
|
||||
readonly attribute DOMString localName;
|
||||
attribute DOMString value;
|
||||
|
||||
readonly attribute DOMString name;
|
||||
readonly attribute DOMString? namespaceURI;
|
||||
readonly attribute DOMString? prefix;
|
||||
};
|
|
@ -66,6 +66,9 @@
|
|||
|
||||
DOMInterfaces = {
|
||||
|
||||
'Attr' : {
|
||||
},
|
||||
|
||||
'AudioBuffer' : {
|
||||
},
|
||||
|
||||
|
@ -178,7 +181,7 @@ DOMInterfaces = {
|
|||
'Element': {
|
||||
'nativeType': 'AbstractNode<ScriptView>',
|
||||
'pointerType': '',
|
||||
'needsAbstract': ['getClientRects', 'getBoundingClientRect', 'setAttribute']
|
||||
'needsAbstract': ['getClientRects', 'getBoundingClientRect', 'setAttribute', 'setAttributeNS', 'id']
|
||||
},
|
||||
|
||||
'Event': {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue