Implement Element.prefix (Fixes #1737)

This commit is contained in:
Sankha Narayan Guria 2014-04-21 19:41:05 +05:30
parent bb8a037cb2
commit 36bf23de20
6 changed files with 23 additions and 31 deletions

View file

@ -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

View file

@ -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;
};