Skip to content

Commit

Permalink
fix(engine): issue #988 ShadowRoot unknown properties (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
caridy authored Jan 24, 2019
1 parent 735e8ea commit fbfa0b5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,13 +489,8 @@ describe('root', () => {
expect(shadowRoot.nodeType).toBe(Node.DOCUMENT_FRAGMENT_NODE);
expect(shadowRoot.nodeName).toBe('#document-fragment');
expect(shadowRoot.nodeValue).toBe(null);
expect(shadowRoot.namespaceURI).toBe(null);
expect(shadowRoot.nextSibling).toBe(null);
expect(shadowRoot.previousSibling).toBe(null);
expect(shadowRoot.nextElementSibling).toBe(null);
expect(shadowRoot.previousElementSibling).toBe(null);
expect(shadowRoot.localName).toBe(null);
expect(shadowRoot.prefix).toBe(null);
expect(shadowRoot.ownerDocument).toBe(elem.ownerDocument);
expect(shadowRoot.baseURI).toBe(elem.baseURI);
expect(shadowRoot.isConnected).toBe(true);
Expand Down
35 changes: 0 additions & 35 deletions packages/@lwc/engine/src/faux-shadow/shadow-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,41 +393,6 @@ const ElementPatchDescriptors = {
return innerHTML;
},
},
localName: {
enumerable: true,
configurable: true,
get() {
return null;
},
},
namespaceURI: {
enumerable: true,
configurable: true,
get() {
return null;
},
},
nextElementSibling: {
enumerable: true,
configurable: true,
get() {
return null;
},
},
previousElementSibling: {
enumerable: true,
configurable: true,
get() {
return null;
},
},
prefix: {
enumerable: true,
configurable: true,
get() {
return null;
},
},
};

const ParentNodePatchDescriptors = {
Expand Down

0 comments on commit fbfa0b5

Please sign in to comment.