mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Implement Element.prefix (Fixes #1737)
This commit is contained in:
parent
bb8a037cb2
commit
36bf23de20
6 changed files with 23 additions and 31 deletions
|
@ -14,13 +14,10 @@
|
|||
*/
|
||||
|
||||
interface Element : Node {
|
||||
/*
|
||||
We haven't moved these from Node to Element like the spec wants.
|
||||
|
||||
[Throws]
|
||||
readonly attribute DOMString? prefix;
|
||||
readonly attribute DOMString localName;
|
||||
*/
|
||||
// readonly attribute DOMString localName;
|
||||
|
||||
[Constant]
|
||||
readonly attribute DOMString namespaceURI;
|
||||
// Not [Constant] because it depends on which document we're in
|
||||
|
|
|
@ -76,13 +76,4 @@ interface Node : EventTarget {
|
|||
Node replaceChild(Node node, Node child);
|
||||
[Throws]
|
||||
Node removeChild(Node child);
|
||||
|
||||
// Mozilla-specific stuff
|
||||
// These have been moved to Element in the spec.
|
||||
// If we move prefix and localName to Element they should return
|
||||
// a non-nullable type.
|
||||
[Constant]
|
||||
readonly attribute DOMString? prefix;
|
||||
[Constant]
|
||||
readonly attribute DOMString? localName;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue