mirror of
https://github.com/servo/servo
synced 2026-05-03 21:02:19 +02:00
Implement HTMLDocument API (#38433)
This updates the pull request from here https://github.com/servo/servo/pull/32553 that looks to be dormant. The main change is that I've switched out `reflector` with `document` based off this suggestion https://github.com/servo/servo/pull/32553#issuecomment-2179568743, and the `GetLocation` and `SupportedPropertyNames` methods pass through the values from `Document`. The implementation details are otherwise the same as the original PR Testing: I don't see any WPT tests for this feature, I could make a custom test if desired Fixes: https://github.com/servo/servo/issues/32536 --------- Signed-off-by: Leo Ring <leoring03@gmail.com>
This commit is contained in:
13
components/script_bindings/webidls/HTMLDocument.webidl
Normal file
13
components/script_bindings/webidls/HTMLDocument.webidl
Normal file
@@ -0,0 +1,13 @@
|
||||
/* 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/.
|
||||
*/
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#htmldocument
|
||||
|
||||
[LegacyOverrideBuiltIns,
|
||||
Exposed=Window]
|
||||
interface HTMLDocument : Document {
|
||||
// DOM tree accessors
|
||||
getter NamedPropertyValue (DOMString name);
|
||||
};
|
||||
Reference in New Issue
Block a user