mirror of
https://github.com/servo/servo.git
synced 2025-08-02 12:10:29 +01:00
dom: Implement stub queryCommandSupported.
This commit is contained in:
parent
887d5f9417
commit
19f4be38d2
3 changed files with 6 additions and 22 deletions
|
@ -3669,6 +3669,11 @@ impl ProfilerMetadataFactory for Document {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl DocumentMethods for Document {
|
impl DocumentMethods for Document {
|
||||||
|
// https://w3c.github.io/editing/ActiveDocuments/execCommand.html#querycommandsupported()
|
||||||
|
fn QueryCommandSupported(&self, _command: DOMString) -> bool {
|
||||||
|
false
|
||||||
|
}
|
||||||
|
|
||||||
// https://drafts.csswg.org/cssom/#dom-document-stylesheets
|
// https://drafts.csswg.org/cssom/#dom-document-stylesheets
|
||||||
fn StyleSheets(&self) -> DomRoot<StyleSheetList> {
|
fn StyleSheets(&self) -> DomRoot<StyleSheetList> {
|
||||||
self.stylesheet_list.or_init(|| {
|
self.stylesheet_list.or_init(|| {
|
||||||
|
|
|
@ -142,7 +142,7 @@ partial /*sealed*/ interface Document {
|
||||||
// boolean queryCommandEnabled(DOMString commandId);
|
// boolean queryCommandEnabled(DOMString commandId);
|
||||||
// boolean queryCommandIndeterm(DOMString commandId);
|
// boolean queryCommandIndeterm(DOMString commandId);
|
||||||
// boolean queryCommandState(DOMString commandId);
|
// boolean queryCommandState(DOMString commandId);
|
||||||
// boolean queryCommandSupported(DOMString commandId);
|
boolean queryCommandSupported(DOMString commandId);
|
||||||
// DOMString queryCommandValue(DOMString commandId);
|
// DOMString queryCommandValue(DOMString commandId);
|
||||||
|
|
||||||
// special event handler IDL attributes that only apply to Document objects
|
// special event handler IDL attributes that only apply to Document objects
|
||||||
|
|
|
@ -1417,9 +1417,6 @@
|
||||||
[Document interface: iframe.contentDocument must inherit property "dir" with the proper type]
|
[Document interface: iframe.contentDocument must inherit property "dir" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: new Document() must inherit property "queryCommandSupported(DOMString)" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Window interface: attribute onsecuritypolicyviolation]
|
[Window interface: attribute onsecuritypolicyviolation]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1441,9 +1438,6 @@
|
||||||
[Window interface: attribute menubar]
|
[Window interface: attribute menubar]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: calling queryCommandSupported(DOMString) on documentWithHandlers with too few arguments must throw TypeError]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: attribute designMode]
|
[Document interface: attribute designMode]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1480,15 +1474,9 @@
|
||||||
[Document interface: calling execCommand(DOMString, boolean, DOMString) on new Document() with too few arguments must throw TypeError]
|
[Document interface: calling execCommand(DOMString, boolean, DOMString) on new Document() with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: calling queryCommandSupported(DOMString) on new Document() with too few arguments must throw TypeError]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Window interface: operation focus()]
|
[Window interface: operation focus()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: documentWithHandlers must inherit property "queryCommandSupported(DOMString)" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Window interface: attribute scrollbars]
|
[Window interface: attribute scrollbars]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1516,9 +1504,6 @@
|
||||||
[Document interface: iframe.contentDocument must inherit property "queryCommandValue(DOMString)" with the proper type]
|
[Document interface: iframe.contentDocument must inherit property "queryCommandValue(DOMString)" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: operation queryCommandSupported(DOMString)]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: iframe.contentDocument must inherit property "all" with the proper type]
|
[Document interface: iframe.contentDocument must inherit property "all" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1588,9 +1573,6 @@
|
||||||
[Window interface: window must inherit property "blur()" with the proper type]
|
[Window interface: window must inherit property "blur()" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: iframe.contentDocument must inherit property "queryCommandSupported(DOMString)" with the proper type]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Document interface: calling execCommand(DOMString, boolean, DOMString) on iframe.contentDocument with too few arguments must throw TypeError]
|
[Document interface: calling execCommand(DOMString, boolean, DOMString) on iframe.contentDocument with too few arguments must throw TypeError]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
@ -1621,9 +1603,6 @@
|
||||||
[Document interface: iframe.contentDocument must inherit property "queryCommandEnabled(DOMString)" with the proper type]
|
[Document interface: iframe.contentDocument must inherit property "queryCommandEnabled(DOMString)" with the proper type]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
[Document interface: calling queryCommandSupported(DOMString) on iframe.contentDocument with too few arguments must throw TypeError]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[Window interface: operation blur()]
|
[Window interface: operation blur()]
|
||||||
expected: FAIL
|
expected: FAIL
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue